Env-Deluxe is a repository packed with shortcuts, bash prompts, and various tweaks aimed to streamline my coding environment. These useful settings are designed to be cloned into a hidden directory. Please feel free to fork this and customise to suit your own needs.
PRs gladly accepted, with a sprinkling of bias and opinion.
Clone this repo from your home directory
git clone https://github.com/jumpdest7d/env-deluxe.git ~/.env-deluxe`.
After cloning, you will need to source the desired files in your .bashrc
or .bash_profile
(depending on your system). For example, if you want to use the git aliases, add the following line:
source ~/.env-deluxe/aliases.sh
Add the command above to the correct shell initialisation file:
Ubuntu:
echo 'source ~/.env-deluxe/aliases.sh' >> ~/.bashrc
Zsh:
echo 'source ~/.env-deluxe/aliases.sh' >> ~/.zshrc
Others:
echo 'source ~/.env-deluxe/aliases.sh' >> ~/.bash_profile`
To apply the changes, restart your terminal or run source ~/.bashrc or source ~/.bash_profile.
This repository includes a file git-aliases.sh with a set of useful aliases for common Git commands. Below are some examples:
Usage: ga yourfile.txt
Usage: gc "Your commit message"
Usage: gp
Usage: gs
Usage: wsl-update-time
WSL has a weird clock skew issue that causes SSL certificate signatures to be expired on creation. See this WSL bug megathread