I use gnome-terminal for most of my hacking. In fact, I use it so much, that I’ll often have multiple tabs open for a particular project. Here’s my workflow:
cd ~/code/some_cool_hack/ # directory of some cool hack
~, instead of keeping the $PWD of
~/code/some_cool_hack/, which is the project I’m working on!
The solution is to add:
# 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
~/.bashrc. Now everything works perfectly!
One side note: this used to be the default, but for some reason it broke around Fedora 19 or 20. Maybe it had to do with my fancy prompt, but everything is working great now.
You can follow James on Mastodon for more frequent updates and other random thoughts.
You can follow James on Twitter for more frequent updates and other random thoughts.
You can support James on GitHub if you'd like to help sustain this kind of content.
You can support James on Patreon if you'd like to help sustain this kind of content.