dotfiles/.config/fish/conf.d/utils.fish

28 lines
580 B
Fish
Raw Normal View History

2023-05-27 22:24:53 +02:00
# Dotfiles
alias dotfiles '/usr/bin/git --git-dir=$HOME/.dotfiles/.git --work-tree=$HOME'
# Add local binaries to the path
fish_add_path ~/.local/bin
# Neovim
alias vi nvim
alias vim nvim
set -Ux EDITOR nvim
# lsd
alias ls lsd
alias l 'ls -1'
alias lc 'ls -1 --classic'
alias tree 'ls --tree'
alias t tree
# Replace htop with bottom
alias htop 'btm -b'
# Replace rm with trash-cli
function rm
echo Please use trm instead of `rm`. If you want to forcefully, recursively remove a file/directory, use `trmf`.
end
2023-05-28 16:40:54 +02:00
alias trm trash-put
alias trmf '/usr/bin/rm -rfv'