Skip to content

Latest commit

 

History

History
62 lines (51 loc) · 2.27 KB

File metadata and controls

62 lines (51 loc) · 2.27 KB

My Shell configuration

My git file

This file (gitconfig) contains my config.

I use remote shortcuts.
I can clone with git clone github:myrepo thanks to:

[url "git@github.com:Harchytekt/"]
    insteadOf = github:

Personnalized shell files

These six shell files personnalizes my Terminal use on macOS.
These files are:

This file contains all the aliases I currently use.

You can find the about script on my GitHub.
For example, I use 'mkdir -p' as mkdir to create intermediate directories when required. I also made two function to quickly compile and run Java programmes through jv $ (the only need is to have the main method inside a Main class).
For Filen, see installation on file.io, and the config file in config/filen that uses the 1password CLI.

sh_path

This file is the simplest for now.

It only contains:

bash_profile (or bashrc) and zshrc

This one is the main file: it makes the link to the others.

It's automatically read by macOS and tells it that the sh_aliases, sh_path and bash_prompt exist. It also tells to the system where to search the files for the bash completion.

Without these links, the file would contain all the lines from the three others (→ loss of readability 😠).

Remark: Now the prompt for ZSH uses starship.

bash_prompt and zsh_prompt

Thess files are heavily inspired by @necolas’s prompt

They personnalize the prompt:

  • it's format;
  • it's colors;
  • it's behaviour:
    • when in a git repo, you'll now if you are on the master branch or on another (not in zsh);
    • when accessed through SSH, the colors will be changed.