diff options
author | Tom Ryder <tom@sanctum.geek.nz> | 2015-06-05 10:59:22 +1200 |
---|---|---|
committer | Tom Ryder <tom@sanctum.geek.nz> | 2015-06-05 10:59:22 +1200 |
commit | 8319dec713046fdfff95241381dd0cd9756442ca (patch) | |
tree | 4af320abbd7dc149848eec0928b815d7ce196758 | |
parent | Add path() function (diff) | |
download | dotfiles-8319dec713046fdfff95241381dd0cd9756442ca.tar.gz dotfiles-8319dec713046fdfff95241381dd0cd9756442ca.zip |
Couple of minor tweaks to path()
-rw-r--r-- | README.markdown | 2 | ||||
-rw-r--r-- | bash/bashrc.d/path.bash | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/README.markdown b/README.markdown index e55ade14..0d44f918 100644 --- a/README.markdown +++ b/README.markdown @@ -178,7 +178,7 @@ There are a few other little tricks in `bash/bashrc.d`, including: * `mkcp` — Create a directory and copy arguments into it * `mkmv` — Create a directory and move arguments into it * `pa` — Print given arguments, one per line -* `path` — Manage the contents of PATH conveniently +* `path` — Manage the contents of `PATH` conveniently * `pd` — Change to the argument’s parent directory * `scr` — Create a temporary directory and change into it * `sprunge` — Pastebin frontend tool I pilfered from `#bash` on Freenode diff --git a/bash/bashrc.d/path.bash b/bash/bashrc.d/path.bash index b182c739..03f16c16 100644 --- a/bash/bashrc.d/path.bash +++ b/bash/bashrc.d/path.bash @@ -126,7 +126,7 @@ path() { PATH="${newpatharr[*]}" ;; - # Return whether DIR is a component of PATH + # Return whether directory is a component of PATH check|c) local -a patharr IFS=: read -a patharr < <(printf '%s\n' "$PATH") |