fix: make kakrc consistent with shell choices
parent
60ecf8c0b9
commit
d7060c6300
|
@ -12,13 +12,13 @@ set-option global scrolloff 2,2
|
||||||
set-option -add global ui_options terminal_assistant=cat
|
set-option -add global ui_options terminal_assistant=cat
|
||||||
|
|
||||||
hook global ModuleLoaded x11 %{
|
hook global ModuleLoaded x11 %{
|
||||||
set-option global termcmd 'st -e bash -c '
|
set-option global termcmd 'st -e dash -c '
|
||||||
} # Set st as default terminal
|
} # Set st as default terminal
|
||||||
|
|
||||||
# __________ Commands __________
|
# __________ Commands __________
|
||||||
define-command -override lf-open \
|
define-command -override lf-open \
|
||||||
-docstring 'pick a file with lf' %{
|
-docstring 'pick a file with lf' %{
|
||||||
terminal bash -c %{
|
terminal dash -c %{
|
||||||
# Local variables
|
# Local variables
|
||||||
kak_buffile=$1 kak_session=$2 kak_client=$3
|
kak_buffile=$1 kak_session=$2 kak_client=$3
|
||||||
|
|
||||||
|
@ -135,7 +135,7 @@ define-command -override -hidden edit-from-file %{
|
||||||
define-command -override -hidden spawn-terminal-from-file %{
|
define-command -override -hidden spawn-terminal-from-file %{
|
||||||
set-register b "%sh{pwd}"
|
set-register b "%sh{pwd}"
|
||||||
change-directory "%sh{dirname $kak_buffile}"
|
change-directory "%sh{dirname $kak_buffile}"
|
||||||
evaluate-commands 'terminal bash'
|
evaluate-commands 'terminal dash'
|
||||||
change-directory "%reg{b}"
|
change-directory "%reg{b}"
|
||||||
} # Spawn a terminal in the current buffer's file directory
|
} # Spawn a terminal in the current buffer's file directory
|
||||||
|
|
||||||
|
@ -257,7 +257,7 @@ hook global BufWritePost "%val{config}/kakrc" %{
|
||||||
} # Source kakrc on save
|
} # Source kakrc on save
|
||||||
|
|
||||||
hook global BufOpenFile '.*\.clj' %{
|
hook global BufOpenFile '.*\.clj' %{
|
||||||
terminal bash -c "cd $(dirname $kak_buffile); lein repl"
|
terminal dash -c "cd $(dirname $kak_buffile); lein repl"
|
||||||
} # Set defaults for clojure coding
|
} # Set defaults for clojure coding
|
||||||
|
|
||||||
hook global BufWritePost "%val{config}/autoload/colorscheme.kak" %{
|
hook global BufWritePost "%val{config}/autoload/colorscheme.kak" %{
|
||||||
|
@ -330,7 +330,7 @@ hook -group config global BufSetOption filetype=lua %{
|
||||||
set-option buffer block_comment_tokens '[[--' '--]]'
|
set-option buffer block_comment_tokens '[[--' '--]]'
|
||||||
} # Lua comment tokens
|
} # Lua comment tokens
|
||||||
|
|
||||||
hook -group config global BufSetOption filetype=(sh|bash) %{
|
hook -group config global BufSetOption filetype=(sh|dash) %{
|
||||||
set-option window formatcmd 'shfmt'
|
set-option window formatcmd 'shfmt'
|
||||||
set-option window lintcmd 'shellharden'
|
set-option window lintcmd 'shellharden'
|
||||||
set-option buffer line_comment_token '#'
|
set-option buffer line_comment_token '#'
|
||||||
|
|
Loading…
Reference in New Issue