33 lines
1,007 B
Plaintext
33 lines
1,007 B
Plaintext
# Shortcut to script with configuration
|
|
alias lock='i3exit lock'
|
|
|
|
# Colorize output
|
|
alias ls='ls -CF --color=auto'
|
|
alias ll='ls -li'
|
|
alias la='ls -lisa'
|
|
alias lsl='ls -lhFA --color=always | less'
|
|
alias tree='tree -C'
|
|
alias grep='grep --color=auto'
|
|
alias egrep='egrep --color=auto'
|
|
alias fgrep='fgrep --color=auto'
|
|
alias diff='diff --color=auto'
|
|
|
|
# Better defaults
|
|
alias more='less'
|
|
alias userlist='cut -d: -f1 /etc/passwd'
|
|
alias fhere='find . -name '
|
|
alias free='free -mt'
|
|
alias ps='ps auxf'
|
|
alias psgrep='ps aux | grep -v grep | grep -i -e VSZ -e'
|
|
alias wget='wget -c'
|
|
alias histg='history | grep'
|
|
alias myip='curl http://ipecho.net/plain; echo'
|
|
alias folders='find . -maxdepth 1 -type d -print0 | xargs -0 du -sk | sort -rn'
|
|
|
|
# Quick compilation with flags
|
|
alias clang++e='clang++ -Wall -Wextra -pedantic -Werror -std=c++17'
|
|
alias g++e='g++ -Wall -Wextra -pedantic -Werror -std=c++17'
|
|
|
|
# Quick documentation using the cpprefernce AUR package
|
|
alias cppref='firefox /usr/share/doc/cppreference/en/cpp.html'
|