-
Notifications
You must be signed in to change notification settings - Fork 0
/
.zshrc
55 lines (44 loc) · 1.12 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
echo "Initialising ZSH"
# Increase max open files limit (default is 256)
ulimit -S -n 2048
# A command for sourcing other scripts
source-script() {
if [[ -f "$1" ]]; then
source "$1"
echo "Script loaded: $1"
return 0
else
echo "Script does not exist: $1"
return 1
fi
}
# Env
export PATH="/usr/local/bin:/usr/local/sbin:/usr/bin:/usr/sbin:/bin:/sbin"
export LANG="en_US.UTF-8"
export LC_ALL="en_US.UTF-8"
export EDITOR="vim"
export PAGER="less"
export JAVA_HOME=$(/usr/libexec/java_home)
export NVM_DIR="$HOME/.nvm"
export ZSH="$HOME/.oh-my-zsh"
export ZSH_THEME=""
# Aliases
alias mc='mc -u' # -u disables subshell support and dramatically increases UI speed
alias v='mvim --remote'
# FZF
source-script "$HOME/.fzf.zsh"
# NVM
source-script "$NVM_DIR/nvm.sh"
# Golang
export PATH="/usr/local/go/bin:$PATH"
# Rust
export PATH="$HOME/.cargo/bin:$PATH"
# RVM
source-script "$HOME/.rvm/scripts/rvm"
# Pure prompt
fpath+=($HOME/.zsh-pure)
autoload -U promptinit; promptinit
prompt pure
# Oh My Zsh
plugins=(zsh-z git rvm rails bundler docker zsh-syntax-highlighting kubectl rust)
source-script "$ZSH/oh-my-zsh.sh"