add script of wifif config for raspberry pi
[dotfiles.git] / zsh / zshrc
index 71f1954..994bd71 100644 (file)
--- a/zsh/zshrc
+++ b/zsh/zshrc
@@ -112,7 +112,10 @@ alias cp='cp -i'
 alias ln='ln -i'
 
 #alias svn='colorsvn'
-alias sed='/usr/local/bin/gsed'
+if [[ $OSNAME == 'Darwin' ]]; then
+    [[ -f '/usr/local/bin/gsed' ]] || echo "zshrc warning: no gsed"
+fi
+[[ -f '/usr/local/bin/gsed' ]] && alias sed='/usr/local/bin/gsed'
 
 ##### Git 
 alias 'gs'='git status'
@@ -292,6 +295,7 @@ export MANPATH=$MANPATH:/usr/local/man
 
 export MANPATH=$MANPATH:${HOME}/perl5/man
 export PATH=$PATH:"${HOME}/scripts"
+export PATH=$PATH:"/sbin:/usr/sbin"
 ## hunspell path
 export DICPATH="/usr/local/share/hunspell/"