dotfiles

feat(fish): useful functions/aliases

+10
+2
fish/config.fish
··· 9 9 alias lT="exa -Tlh --no-user --no-time" 10 10 alias ll="exa -lh --no-user" 11 11 alias la="exa -lha --git --no-user" 12 + alias nv="foreground_nvim" 13 + alias gr="gh repo clone" 12 14 13 15 # Exported Variables 14 16 set -gx PATH ~/.local/bin $PATH
+8
fish/functions/foreground_nvim.fish
··· 1 + function foreground_nvim 2 + if jobs | grep -q "stopped.*nvim" 3 + set pid (jobs | grep "stopped.*nvim" | head -n 1 | awk '{print $2}') 4 + fg $pid 5 + else 6 + nvim $argv 7 + end 8 + end