diff --git a/.config/fish/functions/mksh.fish b/.config/fish/functions/mksh.fish index c16656b9..69c42a64 100644 --- a/.config/fish/functions/mksh.fish +++ b/.config/fish/functions/mksh.fish @@ -1,4 +1,12 @@ -function mksh --description 'make executable shell script' --argument-names name - printf '#!/bin/sh\n\n' >$name.sh - chmod +x $name.sh +function mksh --description 'make executable shell script' + argparse 'e/edit' -- $argv + set name $argv[1] + echo $name.sh + set file $name.sh + echo $file + printf '#!/bin/sh\n\n' >$file + chmod +x $file + if set -q _flag_e + kak "$file" -e 'exec -with-hooks gjo' + end end diff --git a/.config/kak/kakrc b/.config/kak/kakrc index f673bb65..7568bb15 100644 --- a/.config/kak/kakrc +++ b/.config/kak/kakrc @@ -126,9 +126,11 @@ map -docstring %{ map global normal '"_' define-command goto-debug %{ - buffer *debug* - ui-scrolloff-disable - execute-keys 'gj' + try %{ + buffer *debug* + ui-scrolloff-disable + execute-keys 'gj' + } } declare-user-mode debug diff --git a/.config/niri/-e.sh b/.config/niri/-e.sh new file mode 100644 index 00000000..13f47935 --- /dev/null +++ b/.config/niri/-e.sh @@ -0,0 +1,2 @@ +#!/bin/sh + diff --git a/.config/niri/user-mode.sh b/.config/niri/user-mode.sh new file mode 100755 index 00000000..13f47935 --- /dev/null +++ b/.config/niri/user-mode.sh @@ -0,0 +1,2 @@ +#!/bin/sh +