Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

It seems like gnome-terminal has changed its startup behavior and now new shells opened via CTRL-SHIFT-N have ~ set as their working directory. Before this change the new shell was opened in the current directoy.

How do I revert this change?

share|improve this question

2 Answers 2

up vote 3 down vote accepted

Read the official gnome-terminal FAQ
See also this bugreport.

share|improve this answer
    
Oh ... should have done this first ... –  Florian May 21 '13 at 9:19

If you use Debian and don't want to wait for the different maintainers to finally decide where "the best position for the script" is, you can do the following:

Edit ~/.bashrc, search for the following lines (might look slightly different):

if [ "$color_prompt" = yes ]; then
  PS1='${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;m\]\w\[\033[00m\]\$ '
else
  PS1='${debian_chroot:+($debian_chroot)}\u@\h:\w\$ '
fi

and add to the else branch:

  # XXX hack to fix ctrl + shift + N
  . /etc/profile.d/vte.sh

Resulting in:

if [ "$color_prompt" = yes ]; then
  PS1='${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;m\]\w\[\033[00m\]\$ '
else
  PS1='${debian_chroot:+($debian_chroot)}\u@\h:\w\$ '
  # XXX hack to fix ctrl + shift + N
  . /etc/profile.d/vte.sh
fi
share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.