|
|
@ -38,9 +38,6 @@ function mycd() { |
|
|
|
cd "$@" 2> /dev/null |
|
|
|
cd "$@" 2> /dev/null |
|
|
|
if [ $? = 0 ]; then |
|
|
|
if [ $? = 0 ]; then |
|
|
|
# If we get here cd was successful |
|
|
|
# If we get here cd was successful |
|
|
|
#if [ ! $TMUX ]; then |
|
|
|
|
|
|
|
# pwd > ~/.current-folder |
|
|
|
|
|
|
|
#fi |
|
|
|
|
|
|
|
ls |
|
|
|
ls |
|
|
|
else |
|
|
|
else |
|
|
|
# If we get here, cd was not successful |
|
|
|
# If we get here, cd was not successful |
|
|
@ -50,7 +47,7 @@ function mycd() { |
|
|
|
echo "Can't cd" |
|
|
|
echo "Can't cd" |
|
|
|
fi |
|
|
|
fi |
|
|
|
fi |
|
|
|
fi |
|
|
|
updatePath |
|
|
|
#updatePath |
|
|
|
} |
|
|
|
} |
|
|
|
alias cd="mycd" |
|
|
|
alias cd="mycd" |
|
|
|
|
|
|
|
|
|
|
@ -203,12 +200,12 @@ function themes() { |
|
|
|
fi |
|
|
|
fi |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
function todo() { |
|
|
|
#function todo() { |
|
|
|
wikidir=${${PWD%/public_html*}%/wiki*}/wiki |
|
|
|
# wikidir=${${PWD%/public_html*}%/wiki*}/wiki |
|
|
|
if [ -d "$wikidir" ]; then |
|
|
|
# if [ -d "$wikidir" ]; then |
|
|
|
$EDITOR "$wikidir/ToDo.md" |
|
|
|
# $EDITOR "$wikidir/ToDo.md" |
|
|
|
fi |
|
|
|
# fi |
|
|
|
} |
|
|
|
#} |
|
|
|
|
|
|
|
|
|
|
|
#This function toggles debug in wp-config |
|
|
|
#This function toggles debug in wp-config |
|
|
|
function debugToggle(){ |
|
|
|
function debugToggle(){ |
|
|
|