Add more aliases to .shellrc

This commit is contained in:
samedamci 2020-03-18 11:08:26 +01:00
parent 80d5386c10
commit 2f8b25aa0e

View File

@ -16,20 +16,21 @@ source "$HOME/.profile"
#~~~~~~~~~
# Aliases
#~~~~~~~~~
# nvim
alias v='nvim'
alias vi='nvim'
alias vim='nvim'
alias suvi='sudo -E nvim'
# package managers
alias owo='yay --editmenu --nodiffmenu --save'
alias uwu="yay -Slq | fzf -m --preview 'yay -Si {1}' | yay -S -"
alias pass='keepassxc-cli clip ~/Passwords/keepass.kdbx'
alias torrent='transmission-cli'
alias ascii='figlet'
alias ytdl-audio='youtube-dl -i --extract-audio --audio-format opus'
alias mirrors='sudo reflector --latest 200 --protocol http --protocol https --sort rate --save /etc/pacman.d/mirrorlist'
alias copy='xclip -selection clipboard'
alias battery='upower -i /org/freedesktop/UPower/devices/battery_BAT0'
# youtube-dl
alias ytdl-audio='youtube-dl -i -f bestaudio -o "%(title)s.%(ext)s" -4'
alias ytdl-opus='youtube-dl -i --extract-audio --audio-format opus -o "%(title)s.%(ext)s" -4'
alias yt-video='youtube-dl -f bestvideo -o "%(title)s.%(ext)s" -4'
alias yt-thumbnail='youtube-dl --write-thumbnail --skip-download -o "%(title)s.%(ext)s" -4'
# git
alias ga='git add'
@ -39,7 +40,25 @@ alias gpom='git push origin master'
alias gl='git log'
alias gpu='git pull'
alias gs='git status'
alias gr='git rm -f'
alias grm='git rm -f'
alias gi='git init'
# github-cli
alias gh-rcp='gh repo create --public'
alias gh-rv='gh repo view'
# fzf
fe() { find ./* -type f | fzf | xargs -r $EDITOR ;}
ff() { vifm "$(find ./* -type d | fzf)" ; clear }
alias f='ff'
# other
alias pass='keepassxc-cli clip ~/Passwords/keepass.kdbx'
alias torrent='transmission-cli'
alias ascii='figlet'
alias mirrors='sudo reflector --latest 200 --protocol http --protocol https --sort rate --save /etc/pacman.d/mirrorlist'
alias copy='xclip -selection clipboard'
alias battery='upower -i /org/freedesktop/UPower/devices/battery_BAT0'
#~~~~~~~~~~~~~~~~~
# Commands Colors
@ -70,3 +89,5 @@ export LESS_TERMCAP_me=$'\E[0m' # reset bold/blink
export LESS_TERMCAP_se=$'\E[0m' # reset reverse video
export LESS_TERMCAP_us=$'\E[1;32m' # begin underline
export LESS_TERMCAP_ue=$'\E[0m' # reset underline
# vim: ft=sh