yadm-new/.shell-aliases

33 lines
666 B
Bash

# vim: set ft=sh sw=2 et :
alias dos2unix='sed "s/%//"'
alias tmux='tmux -2'
alias mux='tmuxinator'
if command -v vim >/dev/null 2>&1; then
alias vi=vim
fi
if command -v nvim >/dev/null 2>&1; then
alias vim=nvim
alias vi=nvim
fi
alias ls='ls --color=auto'
alias ll='\ls -l'
alias lla='\ls -la'
alias lt='\ls --color=auto -lhFart'
if command -v lsd >/dev/null 2>&1; then
alias ls='lsd'
alias ll='lsd -l'
alias lla='lsd -la'
fi
alias grep='grep --color=auto'
if [[ -n "$TMUX" ]]; then
alias fzf='fzf-tmux'
fi
# Pacman Aliases
#alias pkgq="pacman -Qq | fzf --preview 'pacman -Qil {}' --layout=reverse --bind 'enter:execute(pacman -Qil {} | less)'"