Updated version of fish ssh shortcut
This commit is contained in:
1
TODO.org
1
TODO.org
@@ -39,7 +39,6 @@ https://github.com/microsoft/pyright/issues/626
|
|||||||
** Cheatsheet popup shortcuts
|
** Cheatsheet popup shortcuts
|
||||||
*** fzf -> tldr
|
*** fzf -> tldr
|
||||||
*** kitty shortcuts
|
*** kitty shortcuts
|
||||||
** ssh wrapper
|
|
||||||
** shell integration
|
** shell integration
|
||||||
* Shell
|
* Shell
|
||||||
** my own version of "hey"
|
** my own version of "hey"
|
||||||
|
|||||||
@@ -61,12 +61,10 @@ let tide_conf = builtins.readFile ./tide_config.fish; in
|
|||||||
|
|
||||||
#
|
#
|
||||||
function ssh --wraps ssh
|
function ssh --wraps ssh
|
||||||
set _SSH_CMD (which ssh)
|
|
||||||
if test $TERM = xterm-kitty
|
if test $TERM = xterm-kitty
|
||||||
TERM=xterm-256color $_SSH_CMD $argv
|
set --function --export TERM xterm-256color
|
||||||
else
|
|
||||||
$_SSH_CMD $argv
|
|
||||||
end
|
end
|
||||||
|
command ssh $argv
|
||||||
end
|
end
|
||||||
|
|
||||||
${builtins.readFile ./tide_config.fish}
|
${builtins.readFile ./tide_config.fish}
|
||||||
|
|||||||
Reference in New Issue
Block a user