From 065894cc494a668b0180f44fe68d895bd09c478c Mon Sep 17 00:00:00 2001 From: William Jamieson Date: Thu, 8 Nov 2012 09:21:46 +1100 Subject: [PATCH 1/3] Created envision theme and template. The enision theme is a modified copy of the pete theme. --- template/envision.template.bash | 43 +++++++++++++++++++++++++++++ themes/envision/envision.theme.bash | 18 ++++++++++++ 2 files changed, 61 insertions(+) create mode 100755 template/envision.template.bash create mode 100644 themes/envision/envision.theme.bash diff --git a/template/envision.template.bash b/template/envision.template.bash new file mode 100755 index 00000000..837984fa --- /dev/null +++ b/template/envision.template.bash @@ -0,0 +1,43 @@ +#!/usr/bin/env bash + +# Load RVM, if you are using it +#[[ -s $HOME/.rvm/scripts/rvm ]] && source $HOME/.rvm/scripts/rvm + +# Add rvm gems and nginx to the path +#export PATH=$PATH:~/.gem/ruby/1.8/bin:/opt/nginx/sbin + +# Path to the bash it configuration +export BASH_IT=$HOME/.bash_it + +# Lock and Load a custom theme file +# location /.bash_it/themes/ +export BASH_IT_THEME='envision' + +# Your place for hosting Git repos. I use this for private repos. +export GIT_HOSTING='wwjamieson3@github.com' + +# Set my editor and git editor +export EDITOR="/usr/bin/mate -w" +export GIT_EDITOR='/usr/bin/mate -w' + +# Set the path nginx +export NGINX_PATH='/opt/nginx' + +# Don't check mail when opening terminal. +unset MAILCHECK + + +# Change this to your console based IRC client of choice. + +export IRC_CLIENT='irssi' + +# Set this to the command you use for todo.txt-cli + +export TODO="t" + +# Set vcprompt executable path for scm advance info in prompt (demula theme) +# https://github.com/xvzf/vcprompt +#export VCPROMPT_EXECUTABLE=~/.vcprompt/bin/vcprompt + +# Load Bash It +source $BASH_IT/bash_it.sh diff --git a/themes/envision/envision.theme.bash b/themes/envision/envision.theme.bash new file mode 100644 index 00000000..a34cff22 --- /dev/null +++ b/themes/envision/envision.theme.bash @@ -0,0 +1,18 @@ +#!/usr/bin/env bash + +prompt_setter() { + # Save history + history -a + history -c + history -r + PS1="$yellow(\t)$reset_color $(scm_char) [$blue\u$reset_color@$green\H$reset_color] $blue\w${reset_color}$red$(scm_prompt_info) $reset_color " + PS2='> ' + PS4='+ ' +} + +PROMPT_COMMAND=prompt_setter + +SCM_THEME_PROMPT_DIRTY=" ✗" +SCM_THEME_PROMPT_CLEAN=" ✓" +SCM_THEME_PROMPT_PREFIX=" (" +SCM_THEME_PROMPT_SUFFIX=")" From efa01217b8442c76db70713b1fdc6b5e8675d609 Mon Sep 17 00:00:00 2001 From: William Jamieson Date: Thu, 8 Nov 2012 11:55:38 +1100 Subject: [PATCH 2/3] changed the git clean repository tick color to green, changed the user to cyan and added a hash (#) at the end of the prompt --- themes/envision/envision.theme.bash | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/themes/envision/envision.theme.bash b/themes/envision/envision.theme.bash index a34cff22..d519962d 100644 --- a/themes/envision/envision.theme.bash +++ b/themes/envision/envision.theme.bash @@ -5,14 +5,14 @@ prompt_setter() { history -a history -c history -r - PS1="$yellow(\t)$reset_color $(scm_char) [$blue\u$reset_color@$green\H$reset_color] $blue\w${reset_color}$red$(scm_prompt_info) $reset_color " + PS1="$yellow(\t)$reset_color $(scm_char) [$cyan\u$reset_color@$green\H$reset_color] $blue\w${reset_color}$red$(scm_prompt_info)$reset_color # " PS2='> ' PS4='+ ' } PROMPT_COMMAND=prompt_setter -SCM_THEME_PROMPT_DIRTY=" ✗" -SCM_THEME_PROMPT_CLEAN=" ✓" +SCM_THEME_PROMPT_DIRTY=" ${bold_red}✗${red}" +SCM_THEME_PROMPT_CLEAN=" ${bold_green}✓${red}" SCM_THEME_PROMPT_PREFIX=" (" SCM_THEME_PROMPT_SUFFIX=")" From d4757051bc78fbce8780fe2d0e774832c2cc6c7a Mon Sep 17 00:00:00 2001 From: William Jamieson Date: Thu, 8 Nov 2012 12:05:30 +1100 Subject: [PATCH 3/3] removed unused exports from envision template --- template/envision.template.bash | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/template/envision.template.bash b/template/envision.template.bash index 837984fa..50edd31e 100755 --- a/template/envision.template.bash +++ b/template/envision.template.bash @@ -17,11 +17,11 @@ export BASH_IT_THEME='envision' export GIT_HOSTING='wwjamieson3@github.com' # Set my editor and git editor -export EDITOR="/usr/bin/mate -w" -export GIT_EDITOR='/usr/bin/mate -w' +#export EDITOR="/usr/bin/mate -w" +#export GIT_EDITOR='/usr/bin/mate -w' # Set the path nginx -export NGINX_PATH='/opt/nginx' +#export NGINX_PATH='/opt/nginx' # Don't check mail when opening terminal. unset MAILCHECK @@ -29,11 +29,11 @@ unset MAILCHECK # Change this to your console based IRC client of choice. -export IRC_CLIENT='irssi' +#export IRC_CLIENT='irssi' # Set this to the command you use for todo.txt-cli -export TODO="t" +#export TODO="t" # Set vcprompt executable path for scm advance info in prompt (demula theme) # https://github.com/xvzf/vcprompt @@ -41,3 +41,4 @@ export TODO="t" # Load Bash It source $BASH_IT/bash_it.sh +