Skip to content

Latest commit

 

History

History
67 lines (44 loc) · 1.75 KB

README.md

File metadata and controls

67 lines (44 loc) · 1.75 KB

Env-Deluxe

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.

Contributions

PRs gladly accepted, with a sprinkling of bias and opinion.

Installation

Clone this repo from your home directory

git clone https://github.com/jumpdest7d/env-deluxe.git ~/.env-deluxe`.

Usage

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

Sourcing on startup

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.

Commands and Aliases

Git Aliases

This repository includes a file git-aliases.sh with a set of useful aliases for common Git commands. Below are some examples:

ga: Git add.

Usage: ga yourfile.txt

gc: Git commit with a message.

Usage: gc "Your commit message"

gp: Git push.

Usage: gp

gs: Git status.

Usage: gs

WSL Aliases

wsl-update-time Update the WSL internal clock

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