/shells

Portable Structure *nix Shell Setup

Primary LanguageShell

Portable *nix Shell Template Structure

2022-08-20 22:25 EDT

The goal is to have a portable template structure for configuration of multiple *nix shells. I got the idea and initial structure from https://heptapod.host/flowblok/shell-startup.

After cloning the repository, you can create the necessary symbolic links in your home directory (${HOME}), as follows:

# create the base link
ln -s ${PATH_TO_REPO}/shell ${HOME}/.shell
# add bash support
ln -s ${PATH_TO_REPO}/bash ${HOME}/.bash
ln -s ${HOME}/.bash/bashrc ${HOME}/.bashrc
ln -s ${HOME}/.bash/logout ${HOME}/.bash_logout
ln -s ${HOME}/.bash/bash_profile ${HOME}/.bash_profile
# add sh support
ln -s ${PATH_TO_REPO}/sh ${HOME}/.sh
ln -s ${HOME}/.sh/profile ${HOME}/.profile
# add zsh support
ln -s ${PATH_TO_REPO}/zsh ${HOME}/.zsh
ln -s ${HOME}/.zsh/interactive ${HOME}/.zshrc
ln -s ${HOME}/.zsh/profile ${HOME}/.zprofile
ln -s ${HOME}/.zsh/env ${HOME}/.zshenv
ln -s ${HOME}/.zsh/login ${HOME}/.zlogin
ln -s ${HOME}/.zsh/logout ${HOME}/.zlogout

# add prezto support
ln -s ${HOME}/.zprezto/runcoms/zpreztorc ${HOME}/.zpreztorc