Posts

Showing posts with the label multiple

Using multiple worktrees with git

Using multiple worktrees with git Modern development with Git is great. Its really easy to work on a feature branch, make changes, undo changes (oops), and share work with colleagues. However, there are challenges. If Im running tests on my local "beer" branch, I cant easily switch over to the "gin" branch to edit code. The local environment only has one feature branch checked out at a time. I can run tests, or add code, or switch branches, but I cant do two things on two different branches at once... But now I can! Thanks to Manoj Mahalingam S, I know understand the "git worktrees" feature which lets you easily use multiple branches at the same time. Thanks, Manoj! Using multiple worktrees with git download  file  now

Using multiple window managers with nested Xserver

Image
Using multiple window managers with nested Xserver I use gnome as my default desktop at home and at office. However, my machines have alternate desktop environment such as kde or xfce installed. I use it to test out features of these environment. The normal way to switch to a different desktop is to log out from the current desktop , select a new session from the gdm login window and login again. However, it is possible to open a new desktop environment in a virtual console using xnest nested xserver. Installation $ sudo apt-get install xnest Using Xnest to run another window manager. Method 1 Xnest server can be started from a terminal as below Xnest :1 -ac & See the screen shot below. The :1 above indicates virtual X display numbered 1. You can also try other numbers. Now on the terminal , Type the following command. export DISPLAY=:1 The above line exports the variable DISPLAY to :1. Now you can open a terminal in the Xnest window by typing xterm & in the terminal. See the s...