Tidy mycd and comment todo function

Jonathan Hodgson 5 years ago
parent 420986a825
commit e4c0640d32
  1. 17
      shells/shared/functions

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

Loading…
Cancel
Save