- Clone this repo locally
- Add the most used directories to bookmarks.json
- Update the variables in the settings.json. Add there any environment variable you would like to have available during all the session
- Extend the next files with aliases and functions you need:
- Update
PROFILE_REPO_PATH
in the following code
export PROFILE_REPO_PATH='/home/cangulo/repos/cangulo-templates/linux-terminal-profile/'
source $PROFILE_REPO_PATH/load-custom-profile.sh
- Append the previous code in your profile terminal file
- Open your terminal and test it!
I recommend you to follow a similar approach:
- Fork this repo
- Instead of using the files mentioned before, duplicate and rename them to
NAME.local.json
files:
- bookmarks.json -> bookmarks.local.json
- settings.json -> settings.local.json
- Add a
.gitignore
file, append there the local files:
bookmarks.local.json
settings.local.json
- Reference local files in load-custom-profile.sh. Look for the
JSON FILES
section
# JSON FILES
export SETTINGS_FILE="$PROFILE_REPO_PATH/settings.local.json"
export BOOKMARKS_FILE="$PROFILE_REPO_PATH/bookmarks.local.json"
- Extend the next files with aliases and functions you need:
- In order to keep the template updated for your needs, changes in
settings.local.json
should be replicated insettings.json
and pushed.
settings.local.json
: local environment variables, NOT PUSHED TO THE REPOsettings.json
: template stored in the repo, used when importing it in new computers
- Default bash script
$HOME/.bashrc
- zsh
$HOME/.zshrc
for zsh
- Linux Terminal: Bash or zsh.
Carlos Angulo https://cangulo.github.io