|
@@ -69,7 +69,7 @@ fi |
|
|
# when building tmux |
|
|
# when building tmux |
|
|
if ! __search_string "$LD_LIBRARY_PATH" "$HOME/.local/lib" |
|
|
if ! __search_string "$LD_LIBRARY_PATH" "$HOME/.local/lib" |
|
|
then |
|
|
then |
|
|
LD_LIBRARY_PATH="$LD_LIBRARY_PATH:$HOME/.local/lib" |
|
|
|
|
|
|
|
|
export LD_LIBRARY_PATH="$LD_LIBRARY_PATH:$HOME/.local/lib" |
|
|
fi |
|
|
fi |
|
|
|
|
|
|
|
|
################################## |
|
|
################################## |
|
@@ -223,7 +223,7 @@ null type paco && alias pc="sudo \paco -D" |
|
|
alias pycalc="python -i -c 'from math import *' " |
|
|
alias pycalc="python -i -c 'from math import *' " |
|
|
null type python3 && alias py3=python3 |
|
|
null type python3 && alias py3=python3 |
|
|
null type python2 && alias py2=python2 |
|
|
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 mytime="date +%Y%m%d-%H%M%S" |
|
|
alias sh="ENV=$HOME/.shrc PS1=\$\ PROMPT_COMMAND="" sh" |
|
|
alias sh="ENV=$HOME/.shrc PS1=\$\ PROMPT_COMMAND="" sh" |
|
|
# type trash >/dev/null 2>&1 && alias rm=trash |
|
|
# type trash >/dev/null 2>&1 && alias rm=trash |
|
@@ -374,6 +374,11 @@ s(){ |
|
|
ack --pager="$PAGER" "$@" |
|
|
ack --pager="$PAGER" "$@" |
|
|
else |
|
|
else |
|
|
echo ">> Using grep" 1>&2 |
|
|
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 . \ |
|
|
grep -nH --color=always --exclude='.svn/*' --exclude='.git/*' "$@" -r . \ |
|
|
| $PAGER |
|
|
| $PAGER |
|
|
# echo "No search command found. Use grep." 2>&1 |
|
|
# echo "No search command found. Use grep." 2>&1 |
|
|