dotfiles/zsh/aliases.zsh

33 lines
698 B
Bash

alias grep='grep --color'
alias less='less -r'
if [ $(command -v bat) ]; then
alias cat='bat --color=always --tabs=2 --style plain --theme=Monokai\ Extended\ Bright'
fi
if [ $(command -v exa) ]; then
alias ls='exa --group-directories-first'
alias ll='ls -l --git'
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'
fi
if [ $(command -v nvim) ]; then
export EDITOR='nvim'
alias vim='nvim'
alias vimdiff='nvim -d'
else
export EDITOR='vim'
fi
function ud() {
wd dots
git pull
git submodule update -f
vim +PlugUpdate
}