start new:
tmux
start new with session name:
tmux new -s myname
| 1. Create a file: /etc/wsl.conf. | |
| 2. Put the following lines in the file in order to ensure the your DNS changes do not get blown away | |
| [network] | |
| generateResolvConf = false | |
| 3. In a cmd window, run wsl --shutdown | |
| 4. Restart WSL2 | |
| 5. Create a file: /etc/resolv.conf. If it exists, replace existing one with this new file. | |
| 6. Put the following line in the file |
| #requires -version 5.1 | |
| <# | |
| The complete version of the function also requires additional modules | |
| which can be downloaded from the PowerShell Gallery. | |
| https://github.com/jdhitsolutions/PSCalendar | |
| https://github.com/jdhitsolutions/myTickle | |
| If you prefer to |
| #requires -version 5.1 | |
| <# | |
| This is a variation of the BoxPrompt code you can find at https://gist.github.com/jdhitsolutions/df808116f9234c070bdaf233418ec59b | |
| Create a lined box with user and location information. The line color will indicate if the user is running elevated. | |
| The prompt will also display the current date and time and a PS prompt with the PowerShell version. | |
| ┌───────────────────────┐ | |
| │ [BOVINE320\Jeff] C:\ │ |
| #!/usr/bin/env bash | |
| PADDING='Padding' | |
| main() { | |
| local xterm_start=0 \ | |
| xterm_width=8 \ | |
| xterm_height=2 | |
| local cube_start=$((xterm_start + xterm_width * xterm_height)) \ |
| #!/usr/bin/python | |
| """Print a swatch using all 256 colors of 256-color-capable terminals.""" | |
| __author__ = "Marius Gedminas <[email protected]>" | |
| __url__ = "https://gist.github.com/mgedmin/2762225" | |
| __version__ = '2.0' | |
| def hrun(start, width, padding=0): |