Pārlūkot izejas kodu

Merge branch 'master' of github.com:10sr/dotfiles

pull/1/head
10sr pirms 11 gadiem
vecāks
revīzija
dfc88b74b9
1 mainītis faili ar 22 papildinājumiem un 0 dzēšanām
  1. +22
    -0
      bashrc

+ 22
- 0
bashrc Parādīt failu

@@ -292,6 +292,28 @@ clk(){
done
}

s(){
if test $# -eq 0
then
echo "No search word given." 1>&2
return 1
fi

if git rev-parse --git-dir >/dev/null 2>&1
then
git grep -n "$1"
elif which ag >/dev/null
then
ag --pager="$PAGER" "$1"
elif which ack >/dev/null
then
ack --pager="$PAGER" "$1"
else
echo "No search command found. Use grep." 2>&1
return 127
fi
}

man(){
env \
LESS_TERMCAP_mb=$(printf "\e[1;35m") \


Notiek ielāde…
Atcelt
Saglabāt