From 1f09661c253fb43fc0d389a754d12fe31725464d Mon Sep 17 00:00:00 2001 From: Alex Kelly Date: Wed, 8 May 2019 11:12:28 -0400 Subject: [PATCH] Added some aliases for taskwarrior contexts --- vim/vimrc | 6 ++++-- zsh/zshrc | 20 +++++++++++++++++++- 2 files changed, 23 insertions(+), 3 deletions(-) diff --git a/vim/vimrc b/vim/vimrc index fe617f3..a8bf4c9 100644 --- a/vim/vimrc +++ b/vim/vimrc @@ -131,8 +131,8 @@ let g:pymode_lint_write = 1 let g:pymode_virtualenv = 1 " Enable breakpoints plugin -let g:pymode_breakpoint = 1 -let g:pymode_breakpoint_key = 'b' + let g:pymode_breakpoint = 1 + let g:pymode_breakpoint_key = 'b' " syntax highlighting let g:pymode_syntax = 1 @@ -153,6 +153,8 @@ let g:dbgPavimOnce = 1 let python_highlight_all=1 syntax on +let g:pymode_python = 'python3' + " For table mode RST friendliness let g:table_mode_corner_corner='+' let g:table_mode_header_fillchar='=' diff --git a/zsh/zshrc b/zsh/zshrc index 739babe..dd377c9 100644 --- a/zsh/zshrc +++ b/zsh/zshrc @@ -60,10 +60,28 @@ source $ZSH/oh-my-zsh.sh source ~/dotfiles/zsh/zsh-git-prompt/zshrc.sh RPS1='$(git_super_status)' -source ~/.autoenv/activate.sh +#source ~/.autoenv/activate.sh + +# changing over to direnv from autoenv +eval "$(direnv hook zsh)" + +# Add PS1 for python virtualenv in direnv +show_virtual_env() { + if [[ -n "$VIRTUAL_ENV" && -n "$DIRENV_DIR" ]]; then + echo "($(basename $VIRTUAL_ENV))" + fi + } + PS1='$(show_virtual_env)'$PS1 + +#--------- End of direnv block ------------------------------------------------ + unsetopt histverify alias in='task add +in' alias rtask="task rc:/home/kellya/.taskrc_tinslin" +alias atwork="task context work" +alias athome="task context home" +alias atschool="task context school" +alias atnone="task context none;" #eval "$(ntfy shell-integration)" source /usr/share/gems/gems/tmuxinator-0.6.11/completion/tmuxinator.zsh source ~/.private_aliases