1
0
Fork 0
mirror of https://codeberg.org/Mo8it/dotfiles.git synced 2024-10-17 20:52:40 +00:00
dotfiles/.config/fish/config.fish
2022-03-20 05:22:56 +01:00

43 lines
1.3 KiB
Fish

if status is-interactive
# Abbreviations
## Replacements
abbr -a -g cat bat
abbr -a -g ls lsd
abbr -a -g ll "lsd -l"
abbr -a -g rm trash
abbr -a -g cd z
## Safety options
abbr -a -g cp "cp -i"
abbr -a -g mv "mv -i"
abbr -a -g rmi "rm -i"
## Default options
abbr -a -g rsync "rsync -avh --partial --zc=zstd --zl=22 --info=PROGRESS2 --no-i-r --stats"
abbr -a -g onefetch "onefetch --no-palette"
## Podman
set -l sagemath_image docker.io/sagemath/sagemath:latest
abbr -a -g sage "podman pull $sagemath_image; podman run -it --rm $sagemath_image"
abbr -a -g sage-jupyter "podman pull $sagemath_image; podman run -it --rm -p8888:8888 $sagemath_image sage-jupyter"
set -l fedora_image registry.fedoraproject.org/fedora:latest
abbr -a -g fedora "podman pull $fedora_image; podman run -it --rm $fedora_image"
set -l asciidoctor_image docker.io/asciidoctor/docker-asciidoctor:latest
abbr -a -g adoc "podman pull $asciidoctor_image; podman run -it --rm -v (pwd):/documents/:Z $asciidoctor_image"
## Scripts
abbr -a -g up "kitty --detach --start-as maximized --session ~/.config/kitty/up.session"
# Variables
set -x EDITOR /usr/bin/nvim
set -x JULIA_NUM_THREADS 16
# Setup
## Zoxide
zoxide init fish | source
## starship
starship init fish | source
end