NewsBlur/config/zshrc

51 lines
1.7 KiB
Bash
Raw Normal View History

2011-02-09 15:45:41 -05:00
export ZSH=$HOME/.oh-my-zsh
2016-02-08 18:04:42 -08:00
export CLICOLOR='1'
2011-02-09 15:45:41 -05:00
export ZSH_THEME="risto"
2016-02-08 18:04:42 -08:00
export DISABLE_AUTO_UPDATE=true
export WORKON_HOME=/srv/newsblur/venv
export PROJECT_HOME=/srv/newsblur
# source /usr/local/bin/virtualenvwrapper.sh
plugins=(git github pip)
2011-02-09 15:45:41 -05:00
source $ZSH/oh-my-zsh.sh
export PYTHONSTARTUP=$HOME/.pystartup
2011-02-09 15:45:41 -05:00
export LSCOLORS='gxgxcxdxBxegedabagacad'
export GOROOT=/srv/code/go
export GOPATH=/srv/code/go
2011-02-09 15:45:41 -05:00
zstyle ':completion:*' matcher-list 'm:{a-z}={A-Z}'
zstyle ':completion:*' list-colors "=(#b) #([0-9]#)*=36=31"
setopt COMPLETE_IN_WORD
# Don't complete stuff already on the line
zstyle ':completion::*:(rm|vi):*' ignore-line true
# Don't complete directory we are already in (../here)
zstyle ':completion:*' ignore-parents parent pwd
zstyle ':completion::approximate*:*' prefix-needed false
expand-or-complete-with-dots() {
echo -n "\e[31m......\e[0m"
zle expand-or-complete
zle redisplay
}
zle -N expand-or-complete-with-dots
bindkey "^I" expand-or-complete-with-dots
unsetopt LIST_BEEP
PROMPT='%{$fg_bold[green]%}%n%{$reset_color%}%{$fg_bold[yellow]%}@%M:%{$fg_bold[blue]%}%~%b $(git_prompt_info)%{$reset_color%}%(!.#.$) '
ZSH_THEME_GIT_PROMPT_PREFIX="%{$fg[red]%}%B"
ZSH_THEME_GIT_PROMPT_SUFFIX="%b%{$fg[red]%}%{$reset_color%}"
2011-02-09 15:45:41 -05:00
# Customize to your needs...
alias ls='ls -pFa --color'
alias cd..='cd ..'
alias smtp='python -m smtpd -n -c DebuggingServer 127.0.0.1:1025'
alias tlnb='echo "----------------\n"; tail -f /srv/newsblur/logs/newsblur.log'
alias sp='/srv/newsblur/manage.py shell_plus --use-pythonrc'
alias cdnb='cd /srv/newsblur'
alias sshdo=/srv/newsblur/utils/ssh.sh
2011-02-09 15:45:41 -05:00
2020-12-02 19:22:06 -05:00
cd ~/newsblur