add .bin into PATH
authorPeng Li <seudut@gmail.com>
Wed, 8 Mar 2017 13:54:53 +0000 (21:54 +0800)
committerPeng Li <seudut@gmail.com>
Wed, 8 Mar 2017 13:54:53 +0000 (21:54 +0800)
bashrc
zsh/zshrc

diff --git a/bashrc b/bashrc
index bfd0ce2..dfe0d0f 100644 (file)
--- a/bashrc
+++ b/bashrc
@@ -69,6 +69,8 @@ if [ -f "/Users/peli3/.git-completion.bash" ]; then
        . "/Users/peli3/.git-completion.bash"
 fi
 
        . "/Users/peli3/.git-completion.bash"
 fi
 
+# export ~/.bin into PATH
+export PATH="$HOME/.bin":$PATH;
 ## https://linuxtoy.org/archives/bash_tricks.html
 #shopt -s histappend 
 #PROMPT_COMMAND='history -a'
 ## https://linuxtoy.org/archives/bash_tricks.html
 #shopt -s histappend 
 #PROMPT_COMMAND='history -a'
index 1ea7de2..0f02ab5 100644 (file)
--- a/zsh/zshrc
+++ b/zsh/zshrc
@@ -312,3 +312,6 @@ if [[ $OSNAME == 'Darwin' ]]; then
     PERL_MB_OPT="--install_base \"$HOME/perl5\""; export PERL_MB_OPT;
     PERL_MM_OPT="INSTALL_BASE=$HOME/perl5"; export PERL_MM_OPT;
 fi
     PERL_MB_OPT="--install_base \"$HOME/perl5\""; export PERL_MB_OPT;
     PERL_MM_OPT="INSTALL_BASE=$HOME/perl5"; export PERL_MM_OPT;
 fi
+
+# export ~/.bin into PATH
+export PATH="$HOME/.bin":$PATH;