From e8611bddbc48123972ff58971136e2ef0f15f8a2 Mon Sep 17 00:00:00 2001 From: "Bernardo B. Marques" Date: Thu, 5 Apr 2012 03:33:06 -0300 Subject: [PATCH 1/4] . --> source. people can bind . for another function than source.. --- install.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/install.sh b/install.sh index e2bc8e2..bfa99cb 100755 --- a/install.sh +++ b/install.sh @@ -8,7 +8,7 @@ if [ "$scmbDir" != "$HOME/.scm_breeze" ]; then fi # This loads SCM Breeze into the shell session. -exec_string="[ -s \"$HOME/.scm_breeze/scm_breeze.sh\" ] && . \"$HOME/.scm_breeze/scm_breeze.sh\"" +exec_string="[ -s \"$HOME/.scm_breeze/scm_breeze.sh\" ] && source \"$HOME/.scm_breeze/scm_breeze.sh\"" # Add line to bashrc and zshrc if not already present. for rc in bashrc zshrc; do From b65c880f10de7667a47c31098c8a1174b6e1679d Mon Sep 17 00:00:00 2001 From: "Bernardo B. Marques" Date: Thu, 5 Apr 2012 04:12:50 -0300 Subject: [PATCH 2/4] add uninstall script --- uninstall.sh | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100755 uninstall.sh diff --git a/uninstall.sh b/uninstall.sh new file mode 100755 index 0000000..ca7b83a --- /dev/null +++ b/uninstall.sh @@ -0,0 +1,7 @@ +#!/bin/sh +# uninstall by (github: bernardofire) +# Remove line from bashrc and zshrc if present. +for rc in bashrc zshrc; do + sed -i '/scm_breeze/d' "$HOME/.$rc" + printf "== Removed SCM Breeze from '$HOME/.$rc'\n" +done From cc665559d4a49048154a5726148da77b538afd4c Mon Sep 17 00:00:00 2001 From: "Bernardo B. Marques" Date: Thu, 5 Apr 2012 04:16:27 -0300 Subject: [PATCH 3/4] add uninstall script into README --- README.markdown | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/README.markdown b/README.markdown index 708e28c..046acea 100644 --- a/README.markdown +++ b/README.markdown @@ -280,6 +280,12 @@ source ~/.bashrc # or source ~/.zshrc `[ -s "$HOME/.scm_breeze/scm_breeze.sh" ] && . "$HOME/.scm_breeze/scm_breeze.sh"` +# Uninstall +~/.scm_breeze/uninstall.sh + +(The install script simply remove the add line from your `.bashrc` or `.zshrc`): + +`[ -s "$HOME/.scm_breeze/scm_breeze.sh" ] && . "$HOME/.scm_breeze/scm_breeze.sh"` # Configuration From 3ab8c169fbf00e887417fc8bae5b2b614b8d8662 Mon Sep 17 00:00:00 2001 From: "Bernardo B. Marques" Date: Thu, 5 Apr 2012 04:18:30 -0300 Subject: [PATCH 4/4] replacing . by source, into README --- README.markdown | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.markdown b/README.markdown index 046acea..132c167 100644 --- a/README.markdown +++ b/README.markdown @@ -278,14 +278,14 @@ source ~/.bashrc # or source ~/.zshrc (The install script simply appends the following line to your `.bashrc` or `.zshrc`): -`[ -s "$HOME/.scm_breeze/scm_breeze.sh" ] && . "$HOME/.scm_breeze/scm_breeze.sh"` +`[ -s "$HOME/.scm_breeze/scm_breeze.sh" ] && source "$HOME/.scm_breeze/scm_breeze.sh"` # Uninstall ~/.scm_breeze/uninstall.sh (The install script simply remove the add line from your `.bashrc` or `.zshrc`): -`[ -s "$HOME/.scm_breeze/scm_breeze.sh" ] && . "$HOME/.scm_breeze/scm_breeze.sh"` +`[ -s "$HOME/.scm_breeze/scm_breeze.sh" ] && source "$HOME/.scm_breeze/scm_breeze.sh"` # Configuration