-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy path.bash_aliases
90 lines (76 loc) · 2.88 KB
/
.bash_aliases
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
# Bitwarden CLI
bw_unlock() { export BW_SESSION=$(bw unlock | head -n4 | tail -n1 | cut -d'=' -f2- | tr -d '"'); }
# Git
alias g="git"
alias gl="git l"
alias gA="git add -A; git s"
alias gr="grh"
alias gR="git reset -q; git s"
alias gs="git s"
alias gc="git commit"
# Clear shortcut
alias c="clear && tmux clear-history"
# Timezones
alias tz-atlanta="sudo ln -sf /usr/share/zoneinfo/America/New_York /etc/localtime"
alias tz-detroit="sudo ln -sf /usr/share/zoneinfo/America/New_York /etc/localtime"
alias tz-sanfrancisco="sudo ln -sf /usr/share/zoneinfo/America/Los_Angeles /etc/localtime"
# Weather
alias weather="curl v2d.wttr.in"
# Program
alias ll="ls -lhA"
export TODOTXT_DEFAULT_ACTION=ls
alias t="todo.sh -ct"
alias kde="/usr/lib/x86_64-linux-gnu/libexec/kdeconnectd"
alias sp="baton my saved tracks"
# Wifi Management
alias wifi="nmcli d wifi list"
# Random
alias copy="xclip -selection c"
alias copy-last="fc -ln -1 | xclip -selection c"
alias adb-proxy="adb devices -l | tail -n +2 | head -n -1 | awk '{print \$1}' | xargs -L1 -I {} adb -s {} reverse tcp:8081 tcp:8081"
alias rr="adb shell input keyevent 82"
alias network="sudo service network-manager restart"
alias pass="cat /usr/share/dict/words | grep -v \"[']\" | shuf -n 6 | tr '[:upper:]' '[:lower:]' | xargs | tr ' ' '-'"
# Terminal colors
alias c0="cat ~/themes/override/reset"
alias c1="cat ~/themes/override/monokai"
alias c2="cat ~/themes/override/vscode"
alias c3="cat ~/themes/override/hotdog"
alias cr="cat ~/themes/override/reset"
alias sc0="wal -i ~/.config/wall.png && theme"
alias sc1="wal --theme sexy-monokai && theme"
alias sc2="wal --theme vscode && theme"
alias sc3="wal --theme base16-gruvbox-medium && theme"
alias sc4="wal --theme base16-gruvbox-medium -l && theme"
# Configurations
alias vimrc="vim ~/.config/nvim/init.vim"
alias i3rc="vim ~/.config/i3/config && swaymsg reload"
alias rangerrc="vim ~/.config/ranger/rc.conf"
alias grc="git config --edit --global"
alias ba="vim ~/.bash_aliases && . ~/.bash_aliases"
alias zshrc="vim ~/.zshrc && . ~/.zshrc"
alias tmuxrc="vim ~/.tmux.conf && tmux source-file ~/.tmux.conf"
#### Jira management
alias pr="jira-tools pull-request"
alias start="jira-tools start"
alias ticket="jira-tools create-ticket"
# =============
# Mac specials
if [[ "$OSTYPE" == "darwin"* ]]; then
alias vim="nvim"
fi
# Twitch things
alias tw_chat="clear; sleep 2; watch-and-reload twitch-chat badcop_"
alias tw_chanpoints="clear; watch-and-reload channel-points"
alias tw_follower="clear; watch-and-reload latest-follower"
alias chat="send-twitch-msg"
alias ichat='clear; echo -n "chat > "; while read -r line; do send-twitch-msg "$line"; clear; echo -n "chat > "; done'
unalias gb
unalias gc
unalias gd
# boot dev
alias bb="cd ~/bootdev/bin"
alias gb="cd ~/bootdev/go-api-gate"
alias gc="cd ~/bootdev/go-api-gate/courses"
alias gd="cd ~/bootdev/go-api-gate/backend/internal/database/sql"
alias qs='cd $(find-exercise)'