Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
executable file 17 lines (14 sloc) 315 Bytes
#!/bin/bash
paths="~/Projects ~/Projects/work ~"
for path in $paths
do
eval fullpath="$path/$@"
if [[ -d $fullpath ]]
then
cd $fullpath
code .
tmux new -A -s $(basename $(pwd) | tr -cd '[a-zA-Z0-9]_-')
exit 0
fi
done
echo "No directories found named $@ in: $paths"
You can’t perform that action at this time.