From 10535aa2988408ddba174f46cbc4acb432fa2b9b Mon Sep 17 00:00:00 2001 From: Jonas Gunz Date: Mon, 16 Nov 2020 14:10:07 +0100 Subject: remove link --- .vim/bundle-active/vim-pathogen | 1 - 1 file changed, 1 deletion(-) delete mode 120000 .vim/bundle-active/vim-pathogen diff --git a/.vim/bundle-active/vim-pathogen b/.vim/bundle-active/vim-pathogen deleted file mode 120000 index 302f26a..0000000 --- a/.vim/bundle-active/vim-pathogen +++ /dev/null @@ -1 +0,0 @@ -../bundle/vim-pathogen/ \ No newline at end of file -- cgit v1.2.3 From 1cc406ce8bd6c2123eb390598d2bca4e217e5b29 Mon Sep 17 00:00:00 2001 From: Jonas Gunz Date: Mon, 16 Nov 2020 14:11:57 +0100 Subject: vim plugins manager --- bash/vim-plugins.bash | 1 + 1 file changed, 1 insertion(+) diff --git a/bash/vim-plugins.bash b/bash/vim-plugins.bash index 1b8d7c6..688d918 100644 --- a/bash/vim-plugins.bash +++ b/bash/vim-plugins.bash @@ -3,6 +3,7 @@ function vim-add() { local NAME=$(basename "$1") + [ -d "$DOTFILEBASE/.vim/bundle-active" ] || mkdir "$DOTFILEBASE/.vim/bundle-active" [ -d "$DOTFILEBASE/.vim/bundle/$NAME" ] || return 1 # no such plugin [ -L "$DOTFILEBASE/.vim/bundle-active/$NAME" ] && return 2 # Already exists -- cgit v1.2.3 From a63880722047e6bca33a6babf2291547280fb1c0 Mon Sep 17 00:00:00 2001 From: Jonas Gunz Date: Mon, 16 Nov 2020 14:15:39 +0100 Subject: prompt venv --- bash/prompt.bash | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/bash/prompt.bash b/bash/prompt.bash index c4c77fc..9e74155 100644 --- a/bash/prompt.bash +++ b/bash/prompt.bash @@ -3,12 +3,14 @@ function prompt_command () { local EXIT="$?" local REMOTE="" + local VENV="" [ $EXIT -eq 0 ] && EXIT="" [ ! -z "$SSH_CONNECTION" ] && REMOTE="${orange}[R] " + [ -z "$VIRTUAL_ENV" ] || VENV="$(basename "$VIRTUAL_ENV")" #PS1="\n${REMOTE}${cyan}\h:$(virtualenv_prompt) ${reset_color} ${yellow}\w ${green}$(scm_prompt_info)\n${red}${EXIT} ${reset_color}→ " - PS1="\n${REMOTE}${cyan}\h: ${reset_color} ${yellow}\w \n${red}${EXIT} ${reset_color}→ " + PS1="\n${REMOTE}${cyan}\h: ${reset_color} ${yellow}\w ${green}${VENV}\n${red}${EXIT} ${reset_color}→ " } PROMPT_COMMAND=prompt_command -- cgit v1.2.3