diff --git a/plugins/available/base.plugin.bash b/plugins/available/base.plugin.bash index ea02bb7b..f47b9c7b 100644 --- a/plugins/available/base.plugin.bash +++ b/plugins/available/base.plugin.bash @@ -5,7 +5,7 @@ function ips () { about 'display all ip addresses for this host' group 'base' - ifconfig | grep "inet " | awk '{ print $2 }' + ifconfig | awk '/inet /{ print $2 }' } function down4me () @@ -210,5 +210,5 @@ function buf () group 'base' local filename=$1 local filetime=$(date +%Y%m%d_%H%M%S) - cp ${filename} ${filename}_${filetime} + cp "${filename}" "${filename}_${filetime}" } diff --git a/plugins/available/dirs.plugin.bash b/plugins/available/dirs.plugin.bash index bb1fb02e..4b82291c 100644 --- a/plugins/available/dirs.plugin.bash +++ b/plugins/available/dirs.plugin.bash @@ -23,7 +23,7 @@ alias 8="pushd +8" alias 9="pushd +9" # Clone this location -alias pc="pushd \`pwd\`" +alias pc="pushd \$(pwd)" # Push new location alias pu="pushd" @@ -73,7 +73,7 @@ G () { # goes to distination dir otherwise , stay in the dir example '$ G ..' group 'dirs' - cd ${1:-$(pwd)} ; + cd "${1:-$(pwd)}" ; } S () { # SAVE a BOOKMARK