-
Notifications
You must be signed in to change notification settings - Fork 17
/
.zshrc
61 lines (46 loc) · 1.67 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
# If you come from bash you might have to change your $PATH.
# export PATH=$HOME/bin:/usr/local/bin:$PATH
# --------------------------- Theme ------------------------------------
# ZSH theme
ZSH_THEME="robbyrussell"
# --------------------------- Paths ------------------------------------
# oh-my-zsh path
export ZSH=$HOME/.oh-my-zsh
# Support 256 colors path
export TERM="xterm-256color"
# npm ENV
# Fix EACCES permissions errors when installing packages globally
NPM_CONFIG_PREFIX=~/.npm-global
# --------------------------- Plugins ----------------------------------
# Which plugins would you like to load? (plugins can be found in ~/.oh-my-zsh/plugins/*)
# Custom plugins may be added to ~/.oh-my-zsh/custom/plugins/
# Example format: plugins=(rails git textmate ruby lighthouse)
# Add wisely, as too many plugins slow down shell startup.
plugins=(
asdf
colored-man-pages
extract
F-Sy-H
zsh-autosuggestions
zsh-completions
)
source $ZSH/oh-my-zsh.sh
# --------------------------- Aliases ----------------------------------
# Copy SSH
alias copyssh="cat < ~/.ssh/id_ed25519.pub | clip.exe | echo '=> Public SSH key copied.'"
# Open developer directory
alias dev="${HOME}/Developer"
# Open Explorer in current folder
alias explorer="explorer.exe ."
# Open .gitconfig in VSCode
alias gitcfg="code ~/.gitconfig"
# List outdated npm packages installed globally
alias npmcheck="npm outdated -g --depth=0"
# List npm packages installed globally
alias npmlist="npm list -g --depth=0"
# Update npm packages installed globally
alias npmupdate="npm update -g"
# Open Windows user directory
alias winhome="/mnt/c/Users/$(echo $USER)"
# Open .zshrc in VSCode
alias zshcfg="code ~/.zshrc"