Merge commit 'd3b9544eadfbe3c45039f71275c582ae306c0640' as 'zsh'

This commit is contained in:
murgi
2017-04-12 10:07:44 +02:00
9 changed files with 83 additions and 0 deletions

2
zsh/.gitignore vendored Normal file
View File

@@ -0,0 +1,2 @@
.*_config*
!.*_config*.example

3
zsh/.gitmodules vendored Normal file
View File

@@ -0,0 +1,3 @@
[submodule "antigen"]
path = antigen
url = https://github.com/zsh-users/antigen.git

View File

@@ -0,0 +1 @@
source /usr/lib/python3.5/site-packages/powerline/bindings/zsh/powerline.zsh

View File

@@ -0,0 +1 @@
source /usr/local/lib/python2.7/dist-packages/powerline/bindings/zsh/powerline.zsh

1
zsh/.user_config.example Normal file
View File

@@ -0,0 +1 @@
DEFAULT_USER=fabian

View File

@@ -0,0 +1,16 @@
export WORKON_HOME=~/python-envs
mkdir -p $WORKON_HOME
function workon() {
if ! { [ "$TERM" = "screen" ] && [ -n "$TMUX" ]; } then
if ! { [ -z "$1" ] } then
tmux setenv VIRTUAL_ENV "$1"
fi
source /usr/bin/virtualenvwrapper.sh
workon "$@"
fi
}
if [ -n "$VIRTUAL_ENV" ]; then
workon $VIRTUAL_ENV
fi

View File

@@ -0,0 +1,17 @@
export WORKON_HOME=~/python-envs
mkdir -p $WORKON_HOME
source /usr/share/virtualenvwrapper/virtualenvwrapper.sh
function workon() {
if ! { [ "$TERM" = "screen" ] && [ -n "$TMUX" ]; } then
if ! { [ -z "$1" ] } then
tmux setenv VIRTUAL_ENV "$1"
fi
source /usr/share/virtualenvwrapper/virtualenvwrapper.sh
workon "$@"
fi
}
if [ -n "$VIRTUAL_ENV" ]; then
workon $VIRTUAL_ENV
fi

41
zsh/.zshrc Normal file
View File

@@ -0,0 +1,41 @@
[[ -f ~/.zsh/.powerline_config ]] && source ~/.zsh/.powerline_config
[[ -f ~/.zsh/.user_config ]] && source ~/.zsh/.user_config
[[ -f ~/.zsh/.virtual_env_config.zsh ]] && source ~/.zsh/.virtual_env_config.zsh
[[ -f /usr/share/doc/find-the-command/ftc.zsh ]] && source /usr/share/doc/find-the-command/ftc.zsh
# Load Antigen
source ~/.zsh/antigen/antigen.zsh
# Clear screen by ctrl+q
bindkey '^q' clear-screen
# Load various lib files
antigen use oh-my-zsh
#
# Antigen Theme
#
antigen theme agnoster
#
# Antigen Bundles
#
antigen bundle git
antigen bundle heroku
antigen bundle command-not-found
antigen bundle go
# antigen bundle tmuxinator
antigen bundle zsh-users/zsh-syntax-highlighting
# For SSH, starting ssh-agent is annoying
antigen bundle ssh-agent
# Python Plugins
antigen bundle pip
antigen bundle python
antigen bundle virtualenv
antigen apply
export EDITOR='vim'

1
zsh/antigen Submodule

Submodule zsh/antigen added at 1359b99666