This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## Powershell commands | |
# Shutdown WSL | |
wsl --shutdown | |
# Confirm WSL shutdown | |
wsl --list -v | |
# Optimize disk to release extra space | |
# Update path to vhdx file as per your system |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Install pip | |
sudo apt install python3-pip | |
# Install virtualenv using pip3 | |
sudo pip3 install virtualenv | |
# Create a virtual environment | |
virtualenv venv | |
# Create virtual environment for a specific Python interpreter version |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Add battery percentage to terminal prompt | |
# https://phoenixnap.com/kb/change-bash-prompt-linux | |
# https://tldp.org/HOWTO/Bash-Prompt-HOWTO/x279.html | |
export PS1="\[\e]0;\u@\h: \w\a\]${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\$(cat /sys/class/power_supply/BAT1/capacity)%-\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]\$" |