Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save himanshurajora/f4ed7df94fab8378f637b92cbb8acbd2 to your computer and use it in GitHub Desktop.
Save himanshurajora/f4ed7df94fab8378f637b92cbb8acbd2 to your computer and use it in GitHub Desktop.
work direcotry not preserved in bash / zsh gnome terminal fix

You can add this command to you shell's confuguration file (.zshrc / .bashrc)

if the vte.sh is not avaible you can just google it

# including this ensures that new gnome-terminal tabs keep the parent `pwd` !
if [ -e /etc/profile.d/vte.sh ]; then
    . /etc/profile.d/vte.sh
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment