-
Notifications
You must be signed in to change notification settings - Fork 0
/
.zshrc
49 lines (37 loc) · 1.08 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
source "${HOME}/.config/rzsh/rzsh.zsh"
if [[ -d $HOME/.cargo ]]; then
# Get your rustlang on
source $HOME/.cargo/env
fi
if [[ -n "$(/usr/bin/which go &>/dev/null)" ]]; then
# Get your golang on
export PATH="$PATH:$(go env GOPATH)/bin"
fi
export EDITOR='vim'
mount_location="/home/$USERNAME/tmp/vardon"
# Functions for me!
function vardonmount() {
if [[ ! -d $mount_location ]]; then
mkdir -p $mount_location
fi
sudo mount -t cifs -o username=$USERNAME //vardon/media $mount_location
}
function vardonumount() {
umount $mount_location
}
ls_color_option="--color=auto"
[[ -n $R_ON_MAC ]] && ls_color_option="-G"
alias ls="ls ${ls_color_option}"
# ------
# TODO: move this into rzsh configs
RZSH_LOCAL_CONF=$HOME/.rzsh_local
[[ -f $RZSH_LOCAL_CONF ]] && source $RZSH_LOCAL_CONF
# Import local machine sepecfic configs
ZSH_LOCAL="$HOME/.zshrc.local"
[[ -f "$ZSH_LOCAL" ]] && source $ZSH_LOCAL
# Pyenv Config
if [[ $(which pyenv &> /dev/null) ]] ; then
export PYENV_ROOT="$HOME/.pyenv"
export PATH="$PYENV_ROOT/bin:$PATH"
eval "$(pyenv init -)"
fi