|Guillaume Bernard f154390509 fix: remove command-not-found plugin for zsh||1 week ago|
|shellConfig.conf.d||2 weeks ago|
|.gitignore||2 years ago|
|LICENSE||2 years ago|
|README.md||3 weeks ago|
|bashrc||2 weeks ago|
|install.sh||2 weeks ago|
|profile||3 weeks ago|
|shellConfig.conf.example||3 weeks ago|
|shellrc||3 weeks ago|
|zshrc||1 week ago|
shellConfig is a tool that automatically configures your shell environment. It works on both zsh (> 5.1) and bash. It offers you some aliases, useful functions by installing libShell.
The first step in the installation process is to get the installer from the Web. This is a shell script that lets you install what you want. In order to execute it, give it the proper rights, using chmod, like as follow:
curl -o install.sh https://code.guillaume-bernard.fr/guilieb/shellConfig/raw/master/install.sh chmod +x ./install.sh
Once retrieved, you have the following options:
USAGE: install.sh [-h] [--help] [--libshell] [--oh-my-zsh] [--powerline-fonts] [--shell-config] [--all] --libshell: install LibShell in the user's current home directory --oh-my-zsh: install Oh-My-ZSH in the user's current home directory. In order to run properly, you must install zsh. --powerline-fonts: install powerline fonts for the current user --shell-config: install ShellConfig on the system. Implies installing libShell as well. It enables ShellConfig default configuration (replaces any custom .profile, .bashrc or .zshrc) --all: install libShell, Powerline fonts, ShellConfig and OhMyZsh.
As it’s an installation process affecting the shell itself, you’re encouraged to reload it manually, using either
source ~/.bashrc or
source ~/.zshrc, etc.
Even if you can use shellConfig without any configuration, to access its full potential, you’re likely to use the two following commands:
The first one allow you to keep your personnal shell scripts as before. You simply have to call the command with the path containing your scripts. Once done, each time a new shell is loaded, so are your personnal functions and variables located in that directory. Here’s an example of my own:
importShellConfigExternalDirectory ~/Documents/Informatique/Configuration/Scripts\ externes
Then order to benefit from everything in shellConfig, you can also import a shellConfig configuration file. You have an example in this repository, called shellConfig.conf.example. Feel free to copy and modify it. You can import it via the importShellConfigSetupFile command, giving the path to your file as first argument.
# get the script curl -o install.sh https://code.guillaume-bernard.fr/guilieb/shellConfig/raw/master/install.sh chmod +x ./install.sh # install ./install.sh --all # setup importShellConfigSetupFile ~/Documents/Informatique/Configuration/local/shellconfig.vars importShellConfigExternalDirectory ~/Documents/Informatique/Configuration/Scripts\ externes
If you decide to enable shellConfig and change a few things, you can! Keep in mind that the easiest thing is to modify the following files: