[ADD] Common shell files
This commit is contained in:
parent
d9ca7787bb
commit
795042b616
4 changed files with 152 additions and 0 deletions
33
shell/.aliases
Normal file
33
shell/.aliases
Normal file
|
|
@ -0,0 +1,33 @@
|
|||
# Useful when changing urxvt colors
|
||||
alias ureload='xrdb -merge ~/.Xresources'
|
||||
|
||||
# Shortcut to script with configuration
|
||||
alias lock='~/scripts/i3exit lock'
|
||||
|
||||
# Colorize output
|
||||
alias ls='ls -CF --color=auto'
|
||||
alias ll='ls -li'
|
||||
alias la='ls -lisa'
|
||||
alias lsl='ls -lhFA | 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 df='df -ahiT --total'
|
||||
alias cp='cp -i'
|
||||
alias more='less'
|
||||
#alias mkdir='mkdir -v'
|
||||
alias userlist='cut -d: -f1 /etc/passwd'
|
||||
alias fhere='find . -name '
|
||||
alias free='free -mt'
|
||||
alias du='du -ach | sort -h'
|
||||
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 logs="find /var/log -type f -exec file {} \; | grep 'text' | cut -d' ' -f1 | sed -e's/:$//g' | grep -v '[0-9]$' | xargs tail -f"
|
||||
alias folders='find . -maxdepth 1 -type d -print0 | xargs -0 du -sk | sort -rn'
|
||||
Loading…
Add table
Add a link
Reference in a new issue