2021-10-02 11:21:15 -04:00
|
|
|
# Color ls
|
|
|
|
alias ls='ls --color=auto'
|
2021-10-02 11:29:37 -04:00
|
|
|
|
2021-10-19 21:27:35 -04:00
|
|
|
# Limit mpv and youtube-dl to 1080p so it doesn't use too much bandwidth
|
2021-10-02 11:21:15 -04:00
|
|
|
alias mpv='mpv --ytdl-format="bestvideo[ext=mp4][height<=?1080]+bestaudio[ext=m4a]"'
|
2021-10-02 11:29:37 -04:00
|
|
|
|
2021-10-19 21:27:35 -04:00
|
|
|
alias youtube-dl='youtube-dl -f "bestvideo[ext=mp4][height<=?1080]+bestaudio[ext=m4a]"'
|
|
|
|
|
2021-10-02 11:21:15 -04:00
|
|
|
# Set gpg tty so curses pinentry works
|
2021-10-21 17:44:21 -04:00
|
|
|
alias gpgt='export GPG_TTY=(tty)'
|
2021-10-02 11:29:37 -04:00
|
|
|
|
2021-10-02 11:21:15 -04:00
|
|
|
# Remove newlines from clipboard (for competitive programming)
|
|
|
|
alias dnl='xsel -b | tr "\n" " " | xsel -ib'
|
2021-10-02 11:29:37 -04:00
|
|
|
|
2021-10-02 11:21:15 -04:00
|
|
|
# Private neovim
|
|
|
|
alias nvimp='nvim -u NONE -c "setlocal history=0 nobackup nomodeline noshelltemp noswapfile noundofile nowritebackup secure viminfo=\"\""'
|
2021-10-02 11:29:37 -04:00
|
|
|
|
|
|
|
# Read pdf file as text
|
2021-10-21 17:44:21 -04:00
|
|
|
function pdfr
|
|
|
|
pdftotext $argv - | nvim
|
|
|
|
end
|
2021-10-02 11:29:37 -04:00
|
|
|
|
2021-10-02 11:21:15 -04:00
|
|
|
# Specific to my Gentoo system
|
|
|
|
alias genlop='doas -u portage /usr/bin/genlop'
|
|
|
|
alias loginctl='doas /bin/loginctl'
|
2021-10-02 11:29:37 -04:00
|
|
|
|
|
|
|
# Delete my gpg key
|
2021-10-08 18:27:09 -04:00
|
|
|
alias wipekey='gpg --batch --yes --delete-secret-keys A3A5FA72F8E5E54FBEE425057225FE3592EFFA38'
|