📝 Added notes on useful bash commands and updated rg
This commit is contained in:
parent
ef2da5ccc9
commit
a936ebba23
1 changed files with 4 additions and 1 deletions
5
aliases
5
aliases
|
|
@ -1,7 +1,7 @@
|
||||||
#Custom Aliases
|
#Custom Aliases
|
||||||
alias .="cd && ls"
|
alias .="cd && ls"
|
||||||
alias more="less"
|
alias more="less"
|
||||||
alias grep="rg"
|
alias grep="rg -N"
|
||||||
alias lf="ranger"
|
alias lf="ranger"
|
||||||
alias ogrep='grep --colour=auto'
|
alias ogrep='grep --colour=auto'
|
||||||
alias egrep='egrep --colour=auto'
|
alias egrep='egrep --colour=auto'
|
||||||
|
|
@ -217,6 +217,9 @@ alias psmem="ps auxf | sort -nr -k 4 | head -5"
|
||||||
# get top process eating cpu
|
# get top process eating cpu
|
||||||
alias pscpu="ps auxf | sort -nr -k 3 | head -5"
|
alias pscpu="ps auxf | sort -nr -k 3 | head -5"
|
||||||
|
|
||||||
|
# useful bash commands
|
||||||
|
# grep, sed, awk, tr, sort, seq, paste, uniq
|
||||||
|
|
||||||
# git aliases
|
# git aliases
|
||||||
alias git-a="git add"
|
alias git-a="git add"
|
||||||
alias git-c="git commit -m"
|
alias git-c="git commit -m"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue