summaryrefslogtreecommitdiff
path: root/.config/shell/aliasrc
blob: 6e819f89d0ac91eb3ba2dcb9c2c37b6c25481a9b (plain)
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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90

# 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'