dotfiles/zsh/aliases.zsh

34 lines
782 B
Bash
Raw Normal View History

2021-03-31 17:35:33 +02:00
alias grep='grep --color'
alias less='less -r'
if [ $(command -v bat) ]; then
2021-04-18 11:14:27 +02:00
alias cat='bat --color=always --tabs=2 --style plain --theme=Monokai\ Extended\ Bright'
2021-03-31 17:35:33 +02:00
fi
if [ $(command -v exa) ]; then
alias ls='exa --group-directories-first'
2021-09-18 15:37:17 +02:00
alias ll='ls -l --git --octal-permissions --no-permissions'
2021-03-31 17:35:33 +02:00
else
case $(uname -s) in;
Darwin) alias ls='ls -G';;
Linux) alias ls='ls --color';;
esac
alias ll='ls -l'
fi
if [ $(command -v fd) ]; then
alias fd='fd -H -L --ignore-file ~/.local/settings/fd'
2021-03-31 17:35:33 +02:00
fi
if [ $(command -v nvim) ]; then
export EDITOR='nvim'
alias vim='nvim'
alias vimdiff='nvim -d'
else
export EDITOR='vim'
fi
2021-08-02 17:17:22 +02:00
2021-08-02 17:18:13 +02:00
function ud() {
2021-08-02 17:17:22 +02:00
wd dots
git pull
git submodule update -f
2021-08-30 00:19:35 +02:00
vim -c "PlugUpdate" -c "PlugClean" -c "q" -c "q"
2021-08-30 00:17:01 +02:00
rm -rf ~/go
2021-08-02 17:17:22 +02:00
}