Skip to content

Commit

Permalink
change default shell, see (#2)
Browse files Browse the repository at this point in the history
  • Loading branch information
Guest0x0 committed Sep 17, 2020
1 parent 2fa1eca commit 02867b5
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 6 deletions.
8 changes: 7 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -147,5 +147,11 @@ hook global WinSetOption filetype=coq %{
}
```

## 4. License
## 4. Known Issues
Using `zsh` for `%opt{coqoune_shell}` seems to sometimes mess up the terminal after kakoune quits.
Using `bash` is fine and `ksh` is not tested.
A way to solve it is to type `reset` after quiting kakoune.
Technical details are in (#2).

## 5. License
This software is distributed under the zlib license.
10 changes: 5 additions & 5 deletions rc/coqoune.kak
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,15 @@ declare-option -hidden str coqoune_path %sh{
declare-option -docstring "
The name of the shell used to execute coqoune scripts.
Possible options are:
1. zsh
2. bash
1. bash
2. zsh
3. ksh
The default will be the first available, from up to down.
" str coqoune_shell %sh{
if zsh --help >/dev/null 2>&1; then
echo zsh
elif bash --help >/dev/null 2>&1; then
if bash --help >/dev/null 2>&1; then
echo bash
elif zsh --help >/dev/null 2>&1; then
echo zsh
elif ksh --help >/dev/null 2>&1; then
echo ksh
fi
Expand Down

0 comments on commit 02867b5

Please sign in to comment.