adds autoCD into most recent directory and debug function

When cding into a directory, the path is saved in ~/.current-folder
ZSHRC then cds into this folder if the file exists and not in a tmux
session

Also added a function debug to functions which will toggle the value of
wp-debug in wp-config
This commit is contained in:
Jonathan Hodgson 2018-04-23 17:19:27 +01:00
parent f1b9bda888
commit e8b2b2e541
2 changed files with 20 additions and 2 deletions

View file

@ -86,3 +86,8 @@ source $ZSH/oh-my-zsh.sh
# alias ohmyzsh="mate ~/.oh-my-zsh"
source ~/.dotfiles/shells/zsh/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh
if [ -f ~/.current-folder ] && [ ! $TMUX ]; then
cd "$(cat ~/.current-folder)"
clear
fi