Files
dotfiles/linux/.bash_aliases

31 lines
661 B
Bash
Executable File

#!/usr/bin/env bash
if ls --color &> /dev/null; then
alias ll='ls -kahlF --color=always'
alias l='ls -CF --color=always'
else
alias ll='ls -kahlFG'
alias l='ls -CFG'
fi
alias dir='dir --color=auto'
alias vdir='vdir --color=auto'
alias grep='grep --color=auto'
alias fgrep='fgrep --color=auto'
alias egrep='egrep --color=auto'
alias cd..='cd ..'
alias mkdir='mkdir -pv'
if hugo version &> /dev/null; then
alias hubu='hugo -v --cleanDestinationDir --gc --minify'
fi
if git --version &> /dev/null; then
alias git-root='cd "$(git rev-parse --show-toplevel)"'
fi
alias bashrc="vim ~/.bashrc && source ~/.bashrc"
alias duh='du -h -d 1 | sort -h'