1
User
Recs.
Recs.
1
Updates
Last
Updated
Updated
Activity
Three simple functions to follow copied or moved files into the target directory:
# Follow copied and moved files to destination directory
cpf() { cp "$@" && goto "$_"; }
mvf() { mv "$@" && goto "$_"; }
goto() { [ -d "$1" ] && cd "$1" || cd "$(dirname "$1")"; }
Specs
Pros
Know any positive aspects of this option?
Cons
Know any negative aspects of this option?
Recommendations
Functions for moving around
Recommended 11 years ago
jasonwryan hasn’t added their experience, pros or cons to their recommendation.