LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Reset a shell to a fresh clean one but does not need to close and open? (https://www.linuxquestions.org/questions/linux-newbie-8/reset-a-shell-to-a-fresh-clean-one-but-does-not-need-to-close-and-open-4175528019/)

madao 12-11-2014 07:02 PM

Reset a shell to a fresh clean one but does not need to close and open?
 
Hi,

I am wondering if there is a way to easily reset a shell (especially dedicated for a job) to a fresh clean shell, but does not need to close and open a new shell?

The reason I am asking it is because I work in some jobs that update their environments frequently (like twice a day), and I have so many tabs/shells open, so I have to rename the tag for a particular task. However, often I have to exit my current job shell, open a new fresh one as a tab and job in again to adapt the new environment changes, while my naming for the old tab is gone. This is getting annoying with more and more tabs open and close every day, so I am wondering if there is a way to reset the shell without close and reopen, which will retain the named tabs?

Thanks,

chrism01 12-11-2014 10:51 PM

I'm not entirely clear on where tabs come into creating new clean shells envs, but this will do that at the cmd line https://unix.stackexchange.com/quest...onment-in-bash

Hmm maybe this instead https://stackoverflow.com/questions/...or-bash-script

madao 12-12-2014 11:37 AM

Quote:

Originally Posted by chrism01 (Post 5283373)
I'm not entirely clear on where tabs come into creating new clean shells envs, but this will do that at the cmd line https://unix.stackexchange.com/quest...onment-in-bash

Hmm maybe this instead https://stackoverflow.com/questions/...or-bash-script

Sorry, my bad. When I say tabs, I mean tabs in Konsole. I always thought it is just terminal until now. Basically I treat a new tab as a new terminal shell, hope I am not wrong.

For your links, I think they work as my job settings, so I got this part. The questions is after, how to reset it with the same but updated setting. It could be multiple files to source, so I tend to not source them one by one.


All times are GMT -5. The time now is 03:53 PM.