added !! and multicd

This commit is contained in:
zebra 2024-07-24 16:31:36 -07:00
parent ff0f534ea2
commit a14255ee10

View File

@ -4,6 +4,19 @@ end
set -U fish_greeting "" set -U fish_greeting ""
#cd tweaks - multicd
function multicd
echo cd (string repeat -n (math (string length -- $argv[1]) - 1) ../)
end
abbr --add dotdot --regex '^\.\.+$' --function multicd
#double bang !!
function last_history_item
echo $history[1]
end
abbr -a !! --position anywhere --function last_history_item
# pyenv init # pyenv init
if command -v pyenv 1>/dev/null 2>&1 if command -v pyenv 1>/dev/null 2>&1