added !! and multicd
This commit is contained in:
parent
ff0f534ea2
commit
a14255ee10
@ -4,6 +4,19 @@ end
|
||||
|
||||
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
|
||||
if command -v pyenv 1>/dev/null 2>&1
|
||||
|
Loading…
Reference in New Issue
Block a user