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() {
|
||||
set -f
|
||||
array=(${${PATH}//:/\\n})
|
||||
for element in "${array[@]}"
|
||||
do
|
||||
echo $element
|
||||
done
|
||||
echo -e ${PATH//:/\\n}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user