Merge commit 'd3b9544eadfbe3c45039f71275c582ae306c0640' as 'zsh'
This commit is contained in:
2
zsh/.gitignore
vendored
Normal file
2
zsh/.gitignore
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
.*_config*
|
||||
!.*_config*.example
|
||||
3
zsh/.gitmodules
vendored
Normal file
3
zsh/.gitmodules
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
[submodule "antigen"]
|
||||
path = antigen
|
||||
url = https://github.com/zsh-users/antigen.git
|
||||
1
zsh/.powerline_config_arch.example
Normal file
1
zsh/.powerline_config_arch.example
Normal file
@@ -0,0 +1 @@
|
||||
source /usr/lib/python3.5/site-packages/powerline/bindings/zsh/powerline.zsh
|
||||
1
zsh/.powerline_config_debian.example
Normal file
1
zsh/.powerline_config_debian.example
Normal file
@@ -0,0 +1 @@
|
||||
source /usr/local/lib/python2.7/dist-packages/powerline/bindings/zsh/powerline.zsh
|
||||
1
zsh/.user_config.example
Normal file
1
zsh/.user_config.example
Normal file
@@ -0,0 +1 @@
|
||||
DEFAULT_USER=fabian
|
||||
16
zsh/.virtual_env_config.zsh.arch.example
Normal file
16
zsh/.virtual_env_config.zsh.arch.example
Normal 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
|
||||
17
zsh/.virtual_env_config.zsh.debian.example
Normal file
17
zsh/.virtual_env_config.zsh.debian.example
Normal 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
41
zsh/.zshrc
Normal 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
1
zsh/antigen
Submodule
Submodule zsh/antigen added at 1359b99666
Reference in New Issue
Block a user