-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathaliases
49 lines (38 loc) · 945 Bytes
/
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
#!/usr/bin/env bash
# system
alias shutdown='sudo shutdown now'
alias restart='sudo reboot'
alias suspend='sudo pm-suspend'
# SSH
alias sshlt='ssh norbu@192.168.1.7'
# xclip
alias cv='xclip -sel clip'
# netstat
alias port='lsof -i | grep'
# folders
alias ws="$HOME/workspace"
alias df="$HOME/.config"
# zsh
alias d='dirs -v'
for index in {1..9}; do alias "\$index"="cd +\${index}"; done; unset index
# configs
alias shconfig='nvim.appimage $ZDOTDIR/.zshrc'
alias aliases='nvim.appimage $XDG_CONFIG_HOME/.aliases'
alias omz='nvim.appimage $XDG_DATA_HOME/.oh-my-zsh'
alias zenv='nvim.appimage ~/.zshenv'
# dotfiles
alias gconf='/usr/bin/git --git-dir="$HOME/.config" --work-tree="$HOME"'
# mkdir
mkcd() {
mkdir -p -- "$1" && cd -P -- "$1" || exit
}
# programs
alias ls=lsd
alias py=python3
alias v=nvim.appimage
alias pn=pnpm
alias pni="pnpm install"
alias pnr="pnpm run"
alias pnx="pnpm exec"
# fly.io
alias flyp="flyctl postgres"