dotfiles/.config/shell/functions/cdt

9 lines
136 B
Text
Raw Normal View History

2023-05-28 16:41:39 -07:00
#!/bin/sh
# This will "cd to" the directory a file is in
# Usage:
# cdt <directory>
cdt() {
cd "$(dirname "$(realpath "$1")")"
}