From d4d71f426117ac90c7b3728d0cec2a34a7c0bd9b Mon Sep 17 00:00:00 2001 From: 10sr <8slashes+git@gmail.com> Date: Fri, 5 Jul 2013 13:28:46 +0900 Subject: [PATCH 1/3] update s function --- bashrc | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/bashrc b/bashrc index 4119cae..6b891aa 100755 --- a/bashrc +++ b/bashrc @@ -374,6 +374,11 @@ s(){ ack --pager="$PAGER" "$@" else echo ">> Using grep" 1>&2 + if test $# -eq 0 + then + echo "No search word given." 1>&2 + return 1 + fi grep -nH --color=always --exclude='.svn/*' --exclude='.git/*' "$@" -r . \ | $PAGER # echo "No search command found. Use grep." 2>&1 From e98fb411354078574101b3c5d94c6c2a1ec0ae03 Mon Sep 17 00:00:00 2001 From: 10sr <8slashes+git@gmail.com> Date: Fri, 5 Jul 2013 15:02:18 +0900 Subject: [PATCH 2/3] bashrc: fix bug --- bashrc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bashrc b/bashrc index 6b891aa..6d379de 100755 --- a/bashrc +++ b/bashrc @@ -69,7 +69,7 @@ fi # when building tmux if ! __search_string "$LD_LIBRARY_PATH" "$HOME/.local/lib" then - LD_LIBRARY_PATH="$LD_LIBRARY_PATH:$HOME/.local/lib" + export LD_LIBRARY_PATH="$LD_LIBRARY_PATH:$HOME/.local/lib" fi ################################## From 672049523d299c3e423b9157523882eb88724b74 Mon Sep 17 00:00:00 2001 From: 10sr <8slashes+git@gmail.com> Date: Sat, 6 Jul 2013 15:52:43 +0900 Subject: [PATCH 3/3] update alias _reloadrc --- bashrc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bashrc b/bashrc index 4119cae..5ed5616 100755 --- a/bashrc +++ b/bashrc @@ -223,7 +223,7 @@ null type paco && alias pc="sudo \paco -D" alias pycalc="python -i -c 'from math import *' " null type python3 && alias py3=python3 null type python2 && alias py2=python2 -alias _reloadrc="test -f ~/.bashrc && source ~/.bashrc" +alias _reloadrc="exec \"$SHELL\"" # alias mytime="date +%Y%m%d-%H%M%S" alias sh="ENV=$HOME/.shrc PS1=\$\ PROMPT_COMMAND="" sh" # type trash >/dev/null 2>&1 && alias rm=trash