Browse Source

More small tweaks

master
Taylor Bockman 2 years ago
parent
commit
7cbe56a9de
  1. 14
      dotfiles/zsh/README.md
  2. 9
      dotfiles/zsh/zshrc

14
dotfiles/zsh/README.md

@ -11,9 +11,21 @@ file:
* `initializations.zsh`: A file containing initialization code for various tasks such as RVM directories, pyenv, etc. * `initializations.zsh`: A file containing initialization code for various tasks such as RVM directories, pyenv, etc.
* `ps1.zsh`: Defines the terminal prompt. * `ps1.zsh`: Defines the terminal prompt.
## Supported Other Files
Private variables will be automatically sourced from `$HOME/.private`,`$HOME/.bash_private` or `HOME/.zsh_private`.
`$HOME/.inputrc` can be used for special input configurations (for example terminal editors require special terminal settings.)
Operating system specific settings can be placed in `.linuxrc` or `.macrc` respectively.
## Git Completion ## Git Completion
Git completion is automatically installed on first run to `.zsh` in the users home. This is all created for you and nothing Git completion is automatically installed on first run to `.zsh` in the users home. This is all created for you and nothing
needs to be done. Should the curl commands fail to pull the correct files from the `git` github repository you will need needs to be done. Should the curl commands fail to pull the correct files from the `git` github repository you will need
to source both `git-completion.bash` and `git-completion.zsh` and adjust the script appropriately or place them in a to source both `git-completion.bash` and `git-completion.zsh` and adjust the script appropriately or place them in a
`.zsh` directory in `$HOME`. `.zsh` directory in `$HOME`.
## Syntax Highlighting
If your ZSH version is greater than or equal to 4.11.3 fish-like syntax highlighting will be installed.

9
dotfiles/zsh/zshrc

@ -10,19 +10,20 @@ fi
# Store private information (exports, keys, etc) in .bash_private. # Store private information (exports, keys, etc) in .bash_private.
if [[ -f $HOME/.bash_private ]]; then if [[ -f $HOME/.bash_private ]]; then
source $HOME/.bash_private source $HOME/.bash_private
echo ".bash_private loaded"
fi fi
# Or alternatively .private... # Or alternatively .private...
if [[ -f $HOME/.private ]]; then if [[ -f $HOME/.private ]]; then
source $HOME/.private source $HOME/.private
echo ".private loaded" fi
# Or alternatively .zsh_private...
if [[ -f $HOME/.zsh_private ]]; then
source $HOME/.zsh_private
fi fi
if [ -f $HOME/.inputrc ]; then if [ -f $HOME/.inputrc ]; then
source $HOME/.inputrc source $HOME/.inputrc
else
echo "No .inputrc detected"
fi fi
if [[ "$OSTYPE" == "darwin"* ]]; then if [[ "$OSTYPE" == "darwin"* ]]; then

Loading…
Cancel
Save