diff options
author | Tristan Williams <tgwil@tgwil.net> | 2024-10-13 06:43:50 -0400 |
---|---|---|
committer | Tristan Williams <tgwil@tgwil.net> | 2024-10-13 06:43:50 -0400 |
commit | d72b883bcd665ad11d8b3fd7eb7c96e9bca8375e (patch) | |
tree | a24225fe28fbb38b19be1f29bfe76308312af75f | |
parent | .bashrc: Reorder things to be more logical (diff) | |
download | dotfiles.core-d72b883bcd665ad11d8b3fd7eb7c96e9bca8375e.tar.gz dotfiles.core-d72b883bcd665ad11d8b3fd7eb7c96e9bca8375e.tar.bz2 dotfiles.core-d72b883bcd665ad11d8b3fd7eb7c96e9bca8375e.zip |
Move PATH stuff to .bash_profile
Since .bashrc is only executed for interactive shells, PATH should
be loaded in .bash_profile to make it available to scripts.
-rw-r--r-- | home/.bash_profile | 8 | ||||
-rw-r--r-- | home/.bashrc | 8 |
2 files changed, 8 insertions, 8 deletions
diff --git a/home/.bash_profile b/home/.bash_profile index e10efd5..902315e 100644 --- a/home/.bash_profile +++ b/home/.bash_profile | |||
@@ -9,6 +9,14 @@ | |||
9 | 9 | ||
10 | 10 | ||
11 | ######################################################################## | 11 | ######################################################################## |
12 | ## PATH | ||
13 | ######################################################################## | ||
14 | # ~/bin is used for personal scripts and other executables used only | ||
15 | # by this user. | ||
16 | PATH=$PATH:$HOME/bin | ||
17 | |||
18 | |||
19 | ######################################################################## | ||
12 | ## .bashrc (core) | 20 | ## .bashrc (core) |
13 | ######################################################################## | 21 | ######################################################################## |
14 | if [[ $- == *i* && -f ~/.bashrc ]]; then | 22 | if [[ $- == *i* && -f ~/.bashrc ]]; then |
diff --git a/home/.bashrc b/home/.bashrc index 0a2f914..df72f0f 100644 --- a/home/.bashrc +++ b/home/.bashrc | |||
@@ -19,14 +19,6 @@ fi | |||
19 | 19 | ||
20 | 20 | ||
21 | ######################################################################## | 21 | ######################################################################## |
22 | ## PATH | ||
23 | ######################################################################## | ||
24 | # ~/bin is used for personal scripts and other executables used only | ||
25 | # by this user. | ||
26 | PATH=$PATH:$HOME/bin | ||
27 | |||
28 | |||
29 | ######################################################################## | ||
30 | ## Bash completion | 22 | ## Bash completion |
31 | ######################################################################## | 23 | ######################################################################## |
32 | [[ $PS1 && -f /usr/local/share/bash-completion/bash_completion.sh ]] \ | 24 | [[ $PS1 && -f /usr/local/share/bash-completion/bash_completion.sh ]] \ |