mirror of
https://github.com/iridakos/goto.git
synced 2025-05-16 15:30:22 -07:00
parent
ae7e85180e
commit
825cc52de7
@ -164,9 +164,9 @@ function _goto_unregister_alias
|
||||
# Unregisters aliases whose directories no longer exist.
|
||||
function _goto_cleanup()
|
||||
{
|
||||
local match matches al dir
|
||||
local IFS=$'\n' match matches al dir
|
||||
|
||||
mapfile -t matches < <(cat ~/.goto 2>/dev/null)
|
||||
read -r -a matches <<< "$(cat ~/.goto 2>/dev/null)"
|
||||
|
||||
for i in "${!matches[@]}"; do
|
||||
IFS=' ' read -r -a match <<< "${matches[$i]}"
|
||||
|
Loading…
x
Reference in New Issue
Block a user