-
Notifications
You must be signed in to change notification settings - Fork 0
/
.aliasesrc
99 lines (71 loc) · 2.53 KB
/
.aliasesrc
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
91
92
93
94
95
96
97
98
99
# Use powerline
alias q="exit"
alias al="alias"
alias colordiff='colordiff -yW"`tput cols`"'
alias resc="nmcli device wifi rescan"
alias psag='(){ps aux | grep $1}'
alias pacbrowse='pacman -Slq | fzf --multi --preview "pacman -Si {1}"'
alias sp='pacman -Slq | fzf --multi --preview "pacman -Si {1}" | xargs -ro sudo pacman -S'
alias rp='pacman -Qq | fzf --multi --preview "pacman -Qi {1}" | xargs -ro sudo pacman -Rns'
alias conf='sudo vim ~/dotfiles/rc.lua'
alias bashrc="vim ~/.bashrc"
alias zsh="vim ~/.zshrc"
alias sp='pacman -Slq | fzf --multi --preview "pacman -Si {1}" | xargs -ro sudo pacman -S'
alias j='fasd_cd -d' # cd, same functionality as j in autojump
alias ji='fasd_cd -i' # cd, same functionality as j in autojump
alias cp="cp -i" # confirm before overwriting something
alias space='du -hs * | sort -h'
alias gradle='./gradlew'
# git aliases
alias gcl="git clone"
alias gst="git status"
alias gco="git checkout"
alias gcob="git checkout -b"
# GitHub CLI
alias ghpr="gh pr view --web &"
alias dash="gh dash --config ~/.config/ghdash.yml"
alias draft="gh pr create -f -d"
# NPM aliases
alias ni='npm install'
alias nid='npm install --save-dev'
alias nr='npm run'
alias ns='npm start'
alias scs='systemctl start'
ee() {
echo "éÉ"
echo -n "éÉ" | xclip -selection c
}
aa(){
echo "àÀ"
echo -n "àÀ" | xclip -selection c
}
# Terraform aliases
alias tf="terraform"
alias tep="terraform plan"
alias tev="terraform validate"
alias tea="terraform apply"
alias tei="terraform init"
alias tchanges='terraform plan | grep "will be\|must be\|has moved"'
# gradle actions
alias formatt="./gradlew ktlintFormat"
alias checkk="./gradlew ktlintCheck"
alias testt="./gradlew test"
alias wifis="nmcli device wifi list"
alias ports="sudo lsof -i -P -n | grep LISTEN"
alias ll="ls -lha"
alias ghtoken="export GITHUB_TOKEN="
alias tfmt="terraform fmt"
alias lg="lazygit"
alias bith="bluetuith"
alias pix="pulsemixer"
alias todo="todoist-cli"
alias todos="todoist-cli s" # Sync todoist
alias tooi='(){todoist-cli a $1 &;}' # Add todo to inbox
alias toot="todoist-cli l | grep Inbox" # List todos in inbox
alias toots='(){todoist-cli a -d today $1 &;}' # Add todo with deadline today
alias capra="autorandr --load capra"
alias mobile="autorandr --load mobile"
alias vy="autorandr --load vy"
alias nvpn='(){sudo openvpn --config /etc/openvpn/ovpn_tcp/$1.nordvpn.com.tcp.ovpn --auth-user-pass ~/.nordvpn/credentials.txt}'
alias nvpnlist='(){ls /etc/openvpn/ovpn_tcp | grep $1 | awk "{print $NF}"}'
alias folders='ls -d */'