-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.zshrc
61 lines (44 loc) · 1.41 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
61
# -----------
# EXPORTS
# -----------
export PATH=/bin:/usr/bin:/usr/local/bin:${PATH}
# Config for nvm, which lets us switch Node versions easily (https://github.com/creationix/nvm)
export NVM_DIR="$HOME/.nvm"
[ -s "/usr/local/opt/nvm/nvm.sh" ] && . "/usr/local/opt/nvm/nvm.sh" # This loads nvm
[ -s "/usr/local/opt/nvm/etc/bash_completion.d/nvm" ] && . "/usr/local/opt/nvm/etc/bash_completion.d/nvm"
# ----------
# ALIAS
# ----------
# Easier navigation: .., ..., ...., ....., ~ and -
alias ..="cd .."
alias ...="cd ../.."
alias ....="cd ../../.."
alias .....="cd ../../../.."
alias ~="cd ~" # `cd` is probably faster to type though
alias -- -="cd -"
# List all files colorized in long format
alias l="ls -lF ${colorflag}"
# List all files colorized in long format, excluding . and ..
alias la="ls -lAF ${colorflag}"
# List only directories
alias lsd="ls -lF ${colorflag} | grep --color=never '^d'"
# Always use color output for `ls`
alias ls="command ls ${colorflag}"
# Git stuff
alias gs="git status -sb"
alias gp="git push"
alias gc="git commit"
alias reload_z="source ~/.zshrc"
alias edit_z="code ~/.zshrc"
# -----------------------------
# MISC
# -----------------------------
# activate starship
eval "$(starship init zsh)"
# asdf
. /usr/local/opt/asdf/libexec/asdf.sh
# ----------
# zsh autosuggestions
# ----------
source ~/.zsh/zsh-autosuggestions/zsh-autosuggestions.zsh
ZSH_AUTOSUGGEST_HIGHLIGHT_STYLE="fg=cyan"