Differences

This shows you the differences between two versions of the page.

Link to this comparison view

ii:labs:01:tasks:02 [2021/10/26 13:48]
radu.mantu
ii:labs:01:tasks:02 [2024/10/18 12:14] (current)
radu.mantu
Line 68: Line 68:
 === [10p] Task C - Start tmux by default === === [10p] Task C - Start tmux by default ===
  
-If you open a new terminal with //<Ctrl + Alt + T>// you will notice that **tmux** is not running. When **zsh** starts up, it automatically sources //.zshrc//, so lets make it execute **tmux** by adding the following at the end:+If you open a new terminal with //<Ctrl + Alt + T>// you will notice that **tmux** is not running. When **zsh** starts up, it automatically sources //.zshrc//, so let'​s ​make it execute **tmux** by adding the following at the end:
  
 <​code>​ <​code>​
 # start tmux session (only once!) # start tmux session (only once!)
-if [ -z "​$TMUX"​ ] && [[ "​$USER"​ == "<YOUR_USERNAME_GOES_HERE>" ]]; then+if [ -z "​$TMUX"​ ] && [[ "​$USER"​ == "​YOUR_USERNAME_GOES_HERE"​ ]]; then
     exec tmux     exec tmux
 fi fi
ii/labs/01/tasks/02.1635245313.txt.gz ยท Last modified: 2021/10/26 13:48 by radu.mantu
CC Attribution-Share Alike 3.0 Unported
www.chimeric.de Valid CSS Driven by DokuWiki do yourself a favour and use a real browser - get firefox!! Recent changes RSS feed Valid XHTML 1.0