A Simple shell configuration for macOS & Linux.
- Usefull aliases for common & git commands
- A simple configuration for
vim
andnano
with syntax coloration - A full configuration for ZSH including
oh-my-zsh
and some really nice packages
- Unix-like operating system (macOS or Linux)
- Zsh should be installed. If not pre-installed (
zsh --version
to confirm), check the following instruction here: Installing ZSH git
,vim
andcurl
should be installed
$ git clone https://github.com/Carmain/shell-configuration.git
$ cd shell-configuration
$ bash install.sh
After that, close all the shells instances and repoen a new one
If nothing changed, try the command antigen reset
& reload the shell again. If the problem isn't fixed, delete the .zcompdump
file (in ~
) and reload again.
- zsh-syntax-highlighting (syntax highlighting bundle)
- zsh-autosuggestions (fish-like auto suggestions)
- zsh-completions (extra zsh completions)
Original command | Alias |
---|---|
cd ../ | .. |
cd ../../ | ... |
cd ../../../ | .... |
ls --color=auto | ls |
ls -l --color=auto | ll |
ls -ahl --color=auto | lahl |
ls -d .* --color=auto | l. |
grep --color=auto | grep |
egrep --color=auto | egrep |
fgrep --color=auto | fgrep |
history | h |
python | py |
pip | pi |
python3 | py3 |
pip3 | pi3 |
git | g |
git flow | gf |
Start the command with git ...
or g ...
(example : git st
)
Original command | Shortcut |
---|---|
add | a |
add . | all |
commit | c |
commit --amend | amend |
diff | d |
diff --cached | cached |
status | st |
checkout | co |
branch | br |
log --graph --oneline --all | tree |