Timeline for Bash tab completion refresh on directory change
Current License: CC BY-SA 4.0
2 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Nov 19, 2021 at 8:39 | comment | added | Dylan Callaghan |
The reason for the if [[ $1 == */* ]] was to replace paths containing forward slashes with just the closest directory in that path. So for example, if given up foo/bar, the command will just navigate to the directory bar. This was necessary because I wanted functionality for up ~, which would be replaced by up /home/username.
|
|
| Nov 18, 2021 at 15:45 | history | answered | Hauke Laging | CC BY-SA 4.0 |