From 849300882b105eb99074db540bc3777771cd638d Mon Sep 17 00:00:00 2001 From: Boris Egorov Date: Mon, 18 Jan 2016 17:04:41 +0600 Subject: [PATCH] bash: Set PATH in .bash_profile instead of .bashrc --- bash/.bash_profile | 12 ++++++++++++ bash/.bashrc | 1 - 2 files changed, 12 insertions(+), 1 deletion(-) create mode 100644 bash/.bash_profile diff --git a/bash/.bash_profile b/bash/.bash_profile new file mode 100644 index 0000000..21a9eaa --- /dev/null +++ b/bash/.bash_profile @@ -0,0 +1,12 @@ +# .bash_profile + +# Get the aliases and functions +if [ -f ~/.bashrc ]; then + . ~/.bashrc +fi + +# User specific environment and startup programs + +PATH=$HOME/.cargo/bin:$HOME/.cargo/bin:$HOME/.local/bin:$HOME/bin:$PATH + +export PATH diff --git a/bash/.bashrc b/bash/.bashrc index 26669cc..a20f229 100644 --- a/bash/.bashrc +++ b/bash/.bashrc @@ -22,7 +22,6 @@ fi # User specific aliases and functions export PROMPT_COMMAND='ret=$?; if [ $ret -ne 0 ] ; then echo -e "returned \033[01;31m$ret\033[00;00m"; fi' export CPPCHECK=$HOME/projects/cppcheck/cppcheck -export PATH=$HOME/.local/bin:$HOME/.cabal/bin:$PATH c() { cd "$1";