/nicks-shell

Shell initialisation scripts

Primary LanguageShellGNU General Public License v3.0GPL-3.0

nicks-shell

Shell initialisation scripts.

Tested on ZSH 5.7 and above.

Both bash and zsh initialisation utilise a common configuration file ($HOME/.shell-configuration) which may be used to stored common properties e.g.

  • NS_PREFIX - where common support software (e.g. brew-koji & zsh-git-prompt) are stored in the filesystem.
  • SW_PREFIX - where system software (such as the JDK, Maven, Gradle etc) are stored in the filesystem.

These prefixes are 'internal' ; specific to certain areas of my work and therefore not required generally.

  • IP_CONFIG - location of IP configuration
  • IP_TOOLING - location of IP_TOOLING

For even more completions install https://github.com/zsh-users/zsh-completions in NS_PREFIX location.

Command line and Prompt

File Colours

It will check for existence (inside NS_PREFIX) for:

Syntax Highlighting

It will check for existence (inside NS_PREFIX) for any of the below, in the following order:

Git

It will check for existence (inside NS_PREFIX) for any of the below, in the following order:

Completions

If either https://github.com/zsh-users/zsh-completions.git or https://github.com/gradle/gradle-completion are installed in the NS_PREFIX directory it will add these to the completion system.

Python

If https://github.com/MichaelAquilina/zsh-autoswitch-virtualenv/ is installed in the NS_PREFIX directory it will activate this for Python environments.

Installation

For all of the files the recommended installation is to place a symbolic link in your home directory pointing to the relevant file in the checkout.

ZSH

  • .zshenv
  • .zshrc

Bash

  • .bashrc

Common

  • .commonshell
  • .aliases

These contains various useful functions and aliases.

GitConfig

Various useful aliases suitable for placing in /etc/gitconfig

Misc

Both of the following are for Firefox configuration. Symbolic links should be placed in the Firefox directory.

  • userChrome.css ($HOME/.mozilla/<id>/chrome/<userChrome.css as symbolic link>)
  • user.js ($HOME/.mozilla/<id>/<user.js as symbolic link>)

The configs-treestyletab@piro.sakura.ne.jp.json is a backup of the configuration for TreeStyleTab. The create_setup.py is a modified instance that can be used with poetry to generate a setup.py