From 7cbe56a9de2b4b3e594723600f41418a90abd383 Mon Sep 17 00:00:00 2001 From: Taylor Bockman Date: Sun, 31 Jul 2022 10:53:43 -0700 Subject: [PATCH] More small tweaks --- dotfiles/zsh/README.md | 14 +++++++++++++- dotfiles/zsh/zshrc | 9 +++++---- 2 files changed, 18 insertions(+), 5 deletions(-) diff --git a/dotfiles/zsh/README.md b/dotfiles/zsh/README.md index 81fed43..5923f92 100644 --- a/dotfiles/zsh/README.md +++ b/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. * `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 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 to source both `git-completion.bash` and `git-completion.zsh` and adjust the script appropriately or place them in a -`.zsh` directory in `$HOME`. \ No newline at end of file +`.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. \ No newline at end of file diff --git a/dotfiles/zsh/zshrc b/dotfiles/zsh/zshrc index e46656f..b56f9f9 100644 --- a/dotfiles/zsh/zshrc +++ b/dotfiles/zsh/zshrc @@ -10,19 +10,20 @@ fi # Store private information (exports, keys, etc) in .bash_private. if [[ -f $HOME/.bash_private ]]; then source $HOME/.bash_private - echo ".bash_private loaded" fi # Or alternatively .private... if [[ -f $HOME/.private ]]; then source $HOME/.private - echo ".private loaded" +fi + +# Or alternatively .zsh_private... +if [[ -f $HOME/.zsh_private ]]; then + source $HOME/.zsh_private fi if [ -f $HOME/.inputrc ]; then source $HOME/.inputrc -else - echo "No .inputrc detected" fi if [[ "$OSTYPE" == "darwin"* ]]; then