fix: make kakrc consistent with shell choices

keyring
anemofilia 2023-08-07 23:07:41 -03:00
parent 60ecf8c0b9
commit d7060c6300
1 changed files with 5 additions and 5 deletions

View File

@ -12,13 +12,13 @@ set-option global scrolloff 2,2
set-option -add global ui_options terminal_assistant=cat
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
# __________ Commands __________
define-command -override lf-open \
-docstring 'pick a file with lf' %{
terminal bash -c %{
terminal dash -c %{
# Local variables
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 %{
set-register b "%sh{pwd}"
change-directory "%sh{dirname $kak_buffile}"
evaluate-commands 'terminal bash'
evaluate-commands 'terminal dash'
change-directory "%reg{b}"
} # Spawn a terminal in the current buffer's file directory
@ -257,7 +257,7 @@ hook global BufWritePost "%val{config}/kakrc" %{
} # Source kakrc on save
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
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 '[[--' '--]]'
} # 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 lintcmd 'shellharden'
set-option buffer line_comment_token '#'