aboutsummaryrefslogtreecommitdiff
path: root/CDScript/cd
blob: 463fe8e93a849eb218071d31a58a733ae3b31064 (plain)
1
2
3
4
5
6
7
#!/bin/sh
set -e
DIR=$1
if test -z "$DIR"; then
	DIR=$HOME
fi
exec sudo gdb -ex 'set confirm off' -ex "call (int) chdir(\"$DIR\")" -ex quit -p $PPID