Guest User

Untitled

a guest
Jan 16th, 2019
95
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.15 KB | None | 0 0
  1. # cdf - cd into the directory of the selected file
  2. cdf() {
  3. local file
  4. local dir
  5. file=$(fzf +m -q "$1") && dir=$(dirname "$file") && cd "$dir"
  6. }
Add Comment
Please, Sign In to add comment