9 lines
136 B
Text
9 lines
136 B
Text
|
#!/bin/sh
|
||
|
# This will "cd to" the directory a file is in
|
||
|
# Usage:
|
||
|
# cdt <directory>
|
||
|
|
||
|
cdt() {
|
||
|
cd "$(dirname "$(realpath "$1")")"
|
||
|
}
|