From 065894cc494a668b0180f44fe68d895bd09c478c Mon Sep 17 00:00:00 2001 From: William Jamieson Date: Thu, 8 Nov 2012 09:21:46 +1100 Subject: [PATCH] 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=")"