1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 | set -o vi
alias sai="sudo apt install"
alias sar='sudo apt remove'
alias sau='sudo apt upgrade'
alias myip="curl --silent https://ipecho.net/plain; echo"
alias ytdl='youtube-dl'
alias ps="ps auxf" # show all processes, display user-oriented format, show processes that aren't attached to ttys, use full-format listing
alias pse="\ps -e --forest" # list processes as a tree
alias psg="\ps aux | grep -v grep | grep -i -e VSZ -e" # search for a running process. example: psg firefox
alias psr="\ps -eo pid,ppid,cmd,%mem,%cpu --sort=-%cpu | head" # list top 10 cpu-intensive processes
alias pst="\ps -eo pid,comm,lstart,etimes,time,args"
alias tarc="tar -cvzf"
alias tarx="tar -xf"
alias off="shutdown -h now"
# ubuntu ls aliases
alias ll='ls -alF'
alias la='ls -A'
alias l='ls -CF'
# libre office convert docx and pptx to pdf
alias lowpdf="lowriter --convert-to pdf"
alias brave="brave-browser"
# fzf wrappers
alias fzfcd='fzfcd() { cd "$(find -type d 2>/dev/null | fzf)" ;}; fzfcd'
alias fzfed='fzfed() { $EDITOR "$(find -type f 2>/dev/null | fzf)" ;}; fzfed'
# find
alias fd="find -name"
|
x