My configuration files (alias dotfiles) for various *nix shells and tools. Used in Debian, Ubuntu, Raspbian and Cygwin and Microsoft PowerShell.
This repository contains only configuration files, so it won't work on its own. It's good rather as inspiration.
Zsh configuration expects, that you have oh-my-zsh installed in directory ~/.oh-my-zsh
.
Vim configuration is based on Vundle.vim plugin manager, which should be located in directory ~/.vim/bundle/Vundle.vim
.
Few things are configured in the PowerShell profile, most notably the prompt, aliases and loading of PowerShell modules. PowerShell profile should be located in %SystemDrive%\Users\<username>\Documents\WindowsPowerShell\Microsoft.PowerShell_profile.ps1
.
The one thing potentially useful for others and also easily portable is the prompt. You can see how it looks bellow.
The prompt consists from three lines. The first one is a blank line, so you can clearly and quickly see, where one command ends and another starts. The second one contains various status information (see bellow) and the last one is the command line, so there is always enough space for long commands. There are two versions of prompt configuration in the repository, for bash and zsh. They are almost the same, there is currently the only difference in the git prompt (see bellow).
If the last command returns non-zero code, there will be another line in the prompt, which comes before any other prompt lines, immediately after the last command's output. The only field on this line is the last command exit code in a square brackets. This field is displayed in red colour and also the prompt sign changes colour from green to red, so you can easily notice, that something goes wrong.
Format is as follows:
[exit_code]
[date time] username@host working_directory (git_branch git_status)
prompt_sign
PowerShell prompt looks the same as Zsh prompt, but doesn't print an exit code of the last command and active Git branch currently.