#!/usr/bin/env bash alias bashrc='source ~/.bashrc' alias zshrc='source ~/.zshrc' alias realias='source ~/.bash_aliases' alias stow="stow -v" alias unstow="stow -D" alias restow="stow -R" alias reload='exec ${SHELL} -l' alias sudo='sudo ' # enable aliases to be sudo'ed alias g='git' alias c='composer' alias hosts="sudo nano /etc/hosts" alias shrug="echo '¯\_(ツ)_/¯' | xclip -selection c" alias up='cd ..' alias back='cd -' alias ..='cd ..' # zsh builtin alias ~='cd ~' # zsh builtin alias -- -='cd -' # zsh builtin alias chmod='chmod --preserve-root' alias chown='chown --preserve-root' alias free='free -h' alias duh='du -ha --max-depth=1' alias sduh='sudo du -ha --max-depth=1' alias l='ls -pCFh --color=auto' alias la='ls -pAFh --color=auto' alias ll='ls -palFh --color=auto' alias mkdir='mkdir -pv' alias where='whereis' # zsh builtin alias ps='ps auxf' alias psg='ps aux | grep -v grep | grep -i -e VSZ -e' alias wine='LANG=ru_RU.utf8 wine' alias wine64='LANG=ru_RU.utf8 wine64' alias ports='netstat -tulpan' # alias pubkey="more ~/.ssh/id_ed25519.pub | xclip -selection clipboard | echo '=> Public key copied to pasteboard.'" alias ssh.pub="cat ~/.ssh/*.pub" alias gpg.new="gpg --full-generate-key" alias gpg.pub="gpg --armor --export" alias gpg.list='gpg --list-keys --keyid-format SHORT' # https://obsproject.com/forum/threads/how-to-start-virtual-camera-without-sudo-privileges.139783/ # alias obscam="sudo modprobe v4l2loopback video_nr=2 card_label='OBS Virtual Camera'"