rmm-scripts/config-files/config.fish

28 lines
576 B
Fish
Raw Permalink Normal View History

2024-07-24 19:09:09 +00:00
if status is-interactive
# Commands to run in interactive sessions can go here
end
2024-07-26 05:48:06 +00:00
set -U fish_user_paths ~/.local/bin $fish_user_paths
2024-07-24 19:09:09 +00:00
set -U fish_greeting ""
2024-07-24 23:31:36 +00:00
#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
2024-07-24 19:09:09 +00:00
# pyenv init
if command -v pyenv 1>/dev/null 2>&1
pyenv init - | source
end
starship init fish | source