From d7060c63003cea4e6f337b27eea1198e1a197ec4 Mon Sep 17 00:00:00 2001 From: anemofilia Date: Mon, 7 Aug 2023 23:07:41 -0300 Subject: [PATCH] fix: make kakrc consistent with shell choices --- files/kak/kakrc | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/files/kak/kakrc b/files/kak/kakrc index bdb6cc2..f605577 100644 --- a/files/kak/kakrc +++ b/files/kak/kakrc @@ -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 '#'