aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/%HOME%/.bash_utils/path.sh
diff options
context:
space:
mode:
authorEgor Tensin <Egor.Tensin@gmail.com>2017-01-20 05:46:51 +0300
committerEgor Tensin <Egor.Tensin@gmail.com>2017-01-20 05:46:51 +0300
commit391dcd8e3d198188cad2c884cef3d683b4eb1931 (patch)
treeaa2e0955f43df0737d4aec85368582be33fd6e70 /%HOME%/.bash_utils/path.sh
parentremove str_invert_match (diff)
downloadlinux-home-391dcd8e3d198188cad2c884cef3d683b4eb1931.tar.gz
linux-home-391dcd8e3d198188cad2c884cef3d683b4eb1931.zip
add common prefixes to functions in .bash_utils/
Diffstat (limited to '%HOME%/.bash_utils/path.sh')
-rw-r--r--%HOME%/.bash_utils/path.sh6
1 files changed, 3 insertions, 3 deletions
diff --git a/%HOME%/.bash_utils/path.sh b/%HOME%/.bash_utils/path.sh
index 57f1ab5..9a0e1a2 100644
--- a/%HOME%/.bash_utils/path.sh
+++ b/%HOME%/.bash_utils/path.sh
@@ -7,7 +7,7 @@
source "$HOME/.bash_utils/text.sh"
-add_missing_path() (
+path_add() (
set -o errexit -o nounset -o pipefail
[ "$#" -eq 0 ] && return 0
@@ -45,9 +45,9 @@ add_missing_path() (
str_join ':' ${dest_list[@]+"${dest_list[@]}"}
)
-add_path() {
+path_export() {
local new_path
- new_path="$( add_missing_path "$@" )" \
+ new_path="$( path_add "$@" )" \
&& export PATH="$new_path"
}