-
Notifications
You must be signed in to change notification settings - Fork 4
/
.zsh_shortcuts
65 lines (56 loc) · 2.3 KB
/
.zsh_shortcuts
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
#display messages
echo 'commands - see a list of commands';
echo 'links - see a list of links';
alias commands='echo "see ds dc dq dps dshell profiles vc refresh ranger solver starlog sync_config bw_login xfin verizon xfinvpn delroute lavacam compass backup"'
alias links='echo "home box g web10"'
# commands
alias see='open .'
alias dc='sudo -E docker-compose up --build'
alias dq='sudo docker-compose down'
alias dps='sudo docker ps'
alias profiles='lvim ~/Dropbox/shell_profiles/.zsh_shortcuts'
alias refresh='source ~/.zshrc'
alias r='source ranger'
alias ds='sudo systemctl start docker'
alias solver='echo "tony famigliano is ready to fuckin code."; while true; do; g++ solution.cpp; ./a.out < input.txt > output.txt; sleep 1; done'
alias starlog='lvim ~/Dropbox/starlog/todo.md'
alias sync_config='rm -r ~/.config; ln -sf ~/Dropbox/shell_profiles/ubuntu_config ~/.config;~/Dropbox/shell_profiles/local_config/local_config.sh'
# sudo usermod -a -G audio $(whoami)
#
# allows audio control over xrdp
alias xfin='sudo ip route add default via 192.168.1.1'
alias verizon='sudo ip route add default via 192.168.1.254'
alias xfinvpn='sudo ip route add 192.168.254.0/24 via 192.168.1.1 dev eno1'
alias delroute='sudo ip route del default'
# xhost +
# allows x11 apps with auth issues to work.
alias compass='mongodb-compass'
alias backup='sudo timeshift-gtk'
# for configuring my microsoft surface screen res.
alias sscreen='xrandr --newmode "1536x1026" 131.52 1536 1632 1800 2064 1026 1027 1030 1062 -HSync +Vsync'
alias ascreen='xrandr --addmode eDP-1 "1536x1026"'
alias mscreen='xrandr -s 1536x1026'
alias sam='sscreen;ascreen;mscreen;'
# cam
alias lavacam='guvcview'
dshell(){
sudo docker exec -it $(sudo docker ps -aqf name=$1) sh
}
#links
alias c='cd ~/Documents/GitHub'
alias web10='cd ~/Documents/GitHub/web10'
alias box='cd ~/Dropbox'
alias home='cd ~'
#start up tmux, dont let it start within itself!!!
if command -v tmux &> /dev/null && [ -n "$PS1" ] && [[ ! "$TERM" =~ screen ]] && [[ ! "$TERM" =~ tmux ]] && [ -z "$TMUX" ]; then
exec tmux
fi
export PATH="$HOME/.local/bin:$PATH"
export EDITOR='lvim'
export PATH=$PATH:/usr/local/go/bin
export PATH=$PATH:~/go/bin
export GIT_CONFIG_GLOBAL="$HOME/.config/.gitconfig"
# pyenv
export PATH="$HOME/.pyenv/bin:$PATH"
eval "$(pyenv init --path)"
eval "$(pyenv virtualenv-init -)"