-
Notifications
You must be signed in to change notification settings - Fork 3
/
.my_zshrc
28 lines (22 loc) · 833 Bytes
/
.my_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
# This file contains code that is for both OSX and Linux
# Python and virtual env
PYTHONPYCACHEPREFIX=$HOME/.cache/python
# Try to find virtualenvwrapper.sh and fail silently if not found
VIRTUAL_ENV_WRAPPER_PATH=$(command -v virtualenvwrapper.sh 2>/dev/null)
if [ -n "$VIRTUAL_ENV_WRAPPER_PATH" ]; then
# Set up the environment variables and source the script
export VIRTUALENVWRAPPER_PYTHON=$(command -v python3)
export VIRTUALENVWRAPPER_VIRTUALENV=$(command -v virtualenv)
export WORKON_HOME="$HOME/.virtualenvs"
source "$VIRTUAL_ENV_WRAPPER_PATH"
fi
# Turn on better_exceptions in python
# https://github.com/Qix-/better-exceptions
export BETTER_EXCEPTIONS=1
#### Environment variables
# Always use vim
export SVN_EDITOR=$(which vim)
export EDITOR=$(which vim)
function randpasswd() {
pwgen -y $1
}