Make terminal open in the directory of active directory
This commit is contained in:
parent
7d53123d6d
commit
9735245bfb
4 changed files with 37 additions and 7 deletions
|
@ -38,9 +38,9 @@ function mycd() {
|
|||
cd "$@" 2> /dev/null
|
||||
if [ $? = 0 ]; then
|
||||
# If we get here cd was successful
|
||||
if [ ! $TMUX ]; then
|
||||
pwd > ~/.current-folder
|
||||
fi
|
||||
#if [ ! $TMUX ]; then
|
||||
# pwd > ~/.current-folder
|
||||
#fi
|
||||
ls
|
||||
else
|
||||
# If we get here, cd was not successful
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue