# Use doas instead of sudo alias sudo="doas" # undo typoes eval $(thefuck --alias) # lol alias frick="fuck" # Append command with sudo if user forgets to run with sudo for command in mount umount sv rc-status rc-update rc-service pacman updatedb su shutdown poweroff reboot timeshift; do alias $command="doas $command" done; unset command # File Commands alias ll='ls -l --color=auto' alias la='ls -la --color=auto' alias cp='cp -v' alias mv='mv -iv' alias rm='rm -iv' alias rmdir='rmdir -v' alias mkdir='mkdir -pv' alias rsync='rsync -vhP' alias clr='clear' # obsolete alias fgrep='grep -F' alias egrep='grep -E' # colors alias ls="ls -hN --color=auto --group-directories-first" alias grep="grep --color=auto" alias diff="diff --color=auto" # program aliases alias bc="bc -l" alias mkd="mkdir -pv" alias yt="youtube-dl --add-metadata -i" alias yta="yt -x -f bestaudio/best" alias ffmpeg="ffmpeg -hide_banner" alias vim="nvim" alias vpnon="sudo nohup openvpn --config /etc/openvpn/mullvad_us_all.conf" alias constat="curl ifconfig.co/json" alias dhcp_refresh='sudo dhcpcd -k; sudo dhcpcd; ip a' # Fast alias fcd='cd "$(cat ~/.cache/fcd/dirs | fzf)"; clear' alias open='xdg-open "$(cat ~/.cache/fcd/files | fzf)"' alias printfile='lp "$(cat ~/.cache/fcd/files | fzf)"' alias openconf='vim $(cat ~/.files | grep .config | fzf)' alias getpath="cat ~/.files | fzf | sed 's/^..//g' | tr -d '\n' | xclip -selection c; clear" # SSH for my servers alias beta="ssh user@172.16.0.100" alias betaftp="sftp user@172.16.0.100" alias betagit="ssh git@172.16.0.100" alias betaroot="ssh root@172.16.0.100" alias thinpc="ssh user@172.16.1.250" alias thinpckiosk="ssh kiosk@172.16.1.250" alias thinpcroot="ssh root@172.16.1.250" alias websrv="ssh user@myexquisitecoolserver.xyz" alias websrvgit="ssh git@myexquisitecoolserver.xyz" alias websrvroot="ssh root@myexquisitecoolserver.xyz" # Git repos alias config="/usr/bin/git --git-dir=$HOME/dotfiles --work-tree=$HOME" alias rss='vim ~/.config/newsboat/urls' #alias record='ffmpeg -f x11grab -video_size 1920x1080 -framerate 60 -i :0.0 -f pulse -i default -preset ultrafast -crf 18 -pix_fmt yuv420p out.mp4' alias websrv="ssh user@myexquisitecoolserver.xyz" alias websrvgit="ssh git@myexquisitecoolserver.xyz" alias websrvroot="ssh root@myexquisitecoolserver.xyz" # Git repos alias config="/usr/bin/git --git-dir=$HOME/dotfiles --work-tree=$HOME" alias rss='vim ~/.config/newsboat/urls' alias record='ffmpeg -f x11grab -video_size 1920x1080 -framerate 60 -i :0.0 -f pulse -i default -preset ultrafast -crf 18 -pix_fmt yuv420p out.mp4'