-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.zshrc
60 lines (40 loc) · 1.51 KB
/
.zshrc
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
export PATH="$HOME/bin:/usr/local/bin:/usr/local/sbin:$PATH"
# Oh my zsh
export ZSH="$HOME/.oh-my-zsh"
plugins=(git npm nvm osx vscode z zsh-autosuggestions zsh-syntax-highlighting)
source $ZSH/oh-my-zsh.sh
# Aliases
alias battery="pmset -g batt"
alias brewme="brewup && brewtidy"
alias brewtidy="brew cleanup --prune-prefix && brew doctor"
alias brewup="brew update && brew upgrade"
alias c="clear"
alias cp="cp -i"
alias dns="dig +short"
alias dud="du -d 1 -h"
alias duf="du -sh *"
alias fd="find . -type d -name"
alias ff="find . -type f -name"
alias gitdel="git clean -xdn"
alias gitdely="git clean -xdn | sed -e \"s/Would remove //g\" | tr '\n' ' ' | awk '{\$1=\$1};1' | xargs trash"
alias gls="/usr/local/bin/gls --color -lah --group-directories-first"
alias h="history"
alias help="man"
alias l="ls -lFh" # size,show type,human readable
alias la="ls -lAFh" # long list,show almost all,show type,human readable
alias ll="ls -l" # long list
alias lr="ls -tRFh" # sorted by date,recursive,show type,human readable
alias lt="ls -ltFh" # long list,sorted by date,show type,human readable
murder() { lsof -t -i tcp:$1 | xargs kill }
alias mv="mv -i"
alias p="ps -f"
alias rm="rm -i"
alias sz="source ~/.zshrc"
alias yb="yarn run build"
alias yd="yarn run dev"
alias yi="yarn install --frozen-lockfile --non-interactive"
alias yl="yarn run lint"
alias ys="yarn run start"
alias yt="yarn run test"
# Starship prompt
eval "$(starship init zsh)"