aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMathias Bynens <mathias@qiwi.be>2012-08-10 11:46:37 +0200
committerMathias Bynens <mathias@qiwi.be>2012-08-10 11:48:58 +0200
commit0e28ec0e3b2e62f226667223ed7491ddb5b5a047 (patch)
treec7721c11c7679ca67d988e9574b753c73f572055
parent7adb09c426e4fe013e27c8d4db84612e2c11f7f7 (diff)
downloaddotfiles-0e28ec0e3b2e62f226667223ed7491ddb5b5a047.tar.gz
dotfiles-0e28ec0e3b2e62f226667223ed7491ddb5b5a047.tar.bz2
dotfiles-0e28ec0e3b2e62f226667223ed7491ddb5b5a047.zip
.bash_profile: Add `~/bin` to the `$PATH`
Just like before, the `$PATH` can still safely be extended by adding `~/.path`.
-rw-r--r--.bash_profile7
-rw-r--r--README.md4
2 files changed, 7 insertions, 4 deletions
diff --git a/.bash_profile b/.bash_profile
index 663e201..505d6d4 100644
--- a/.bash_profile
+++ b/.bash_profile
@@ -1,6 +1,9 @@
+# Add `~/bin` to the `$PATH`
+export PATH="$HOME/bin:$PATH"
+
# Load the shell dotfiles, and then some:
-# * ~/.path can be used to set or extend `$PATH`.
-# * ~/.extra can be used for settings you don’t want to commit.
+# * ~/.path can be used to extend `$PATH`.
+# * ~/.extra can be used for other settings you don’t want to commit.
for file in ~/.{path,bash_prompt,exports,aliases,functions,extra}; do
[ -r "$file" ] && source "$file"
done
diff --git a/README.md b/README.md
index caa259f..3c67695 100644
--- a/README.md
+++ b/README.md
@@ -36,10 +36,10 @@ To update later on, just run that command again.
If `~/.path` exists, it will be sourced along with the other files, before any feature testing (such as [detecting which version of `ls` is being used](https://github.com/mathiasbynens/dotfiles/blob/aff769fd75225d8f2e481185a71d5e05b76002dc/.aliases#L21-26)) takes place.
-Here’s an example `~/.path` file that adds `~/bin` to the `$PATH`:
+Here’s an example `~/.path` file that adds `~/utils` to the `$PATH`:
```bash
-export PATH="$HOME/bin:$PATH"
+export PATH="$HOME/utils:$PATH"
```
### Add custom commands without creating a new fork