if status is-interactive # Disable greeting set -g fish_greeting # Interactive environment variables set -gx EDITOR ~/.cargo/bin/hx # Setup ## Zoxide zoxide init fish | source ## Starship starship init fish | source # Abbreviations ## Replacements abbr -ag rm trash ## Safety options abbr -ag cp "cp -i" abbr -ag mv "mv -i" abbr -ag rmr "rm -r" ## Default options set -g rsync "rsync -avhL --partial --zc=zstd --zl=8 --no-i-r --info=progress2" abbr -ag rsync $rsync ## Podman set -l sagemath_image docker.io/sagemath/sagemath:latest abbr -ag sage "podman run --pull newer -it --rm $sagemath_image" abbr -ag sage-jupyter "podman run --pull newer -it --rm -p8888:8888 $sagemath_image sage-jupyter" set -l fedora_image registry.fedoraproject.org/fedora:(rpm -E %fedora) abbr -ag fedora "podman run --pull newer -it --rm $fedora_image" abbr -ag pps "podman ps --format '{{.Names}}'" # Functions ## Replacements function cd -w z z $argv end function kssh -w ssh kitty +kitten ssh $argv end function ls -w lsd lsd $argv end function ll -w lsd lsd -l $argv end function cat -w bat bat $argv end function lg -w lazygit lazygit $argv end function gu -w gitui gitui $argv end function zola flatpak run org.getzola.zola $argv end function julia JULIA_NUM_THREADS=16 ~/.julia/juliaup/bin/julia $argv end ## Taskwarrior function ta -w task -d "Add no priority task" task add project:$argv[1] $argv[2..] end function tal -w task -d "Add low priority task" ta $argv priority:L end function tam -w task -d "Add medium priority task" ta $argv priority:M end function tah -w task -d "Add high priority task" ta $argv priority:H end function vp -w task vit project:$argv[1] $argv[2..] end # Private config set -l private_config ~/.config/fish/private_config.fish if test -f $private_config source $private_config end end