You've already forked dotfiles
refactor: vastly more readable path function by removing cruft and the
loop
This commit is contained in:
@@ -22,10 +22,5 @@ function new_note() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function path() {
|
function path() {
|
||||||
set -f
|
echo -e ${PATH//:/\\n}
|
||||||
array=(${${PATH}//:/\\n})
|
|
||||||
for element in "${array[@]}"
|
|
||||||
do
|
|
||||||
echo $element
|
|
||||||
done
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user