diff options
Diffstat (limited to '')
-rw-r--r-- | dot_config/zsh/dot_zshrc | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/dot_config/zsh/dot_zshrc b/dot_config/zsh/dot_zshrc index 829b5a7..296d368 100644 --- a/dot_config/zsh/dot_zshrc +++ b/dot_config/zsh/dot_zshrc @@ -1,3 +1,4 @@ +#!/usr/bin/env zsh # Enable Powerlevel10k instant prompt. Should stay close to the top of ~/.config/zsh/.zshrc. # Initialization code that may require console input (password prompts, [y/n] # confirmations, etc.) must go above this block; everything else may go below. @@ -25,6 +26,10 @@ case "$ID" in ;; esac +if [ -x "$(command -v gem)" ]; then + export GEM_HOME="$(gem env user_gemhome)" + export PATH="$PATH:$GEM_HOME/bin" +fi # Enable colors and change prompt: autoload -U colors && colors # Load colors @@ -34,8 +39,11 @@ setopt interactive_comments setopt complete_aliases # History in cache directory: -HISTSIZE=100000000 -SAVEHIST=100000000 +HISTSIZE=999999999 +SAVEHIST=$HISTSIZE +if [ -z "$XDG_STATE_HOME/zsh" ]; then + mkdir -p "$XDG_STATE_HOME/zsh" +fi HISTFILE="$XDG_STATE_HOME"/zsh/history setopt BANG_HIST # Treat the '!' character specially during expansion. setopt EXTENDED_HISTORY # Write the history file in the ":start:elapsed;command" format. @@ -104,3 +112,5 @@ case "$ID" in ;; esac +# Windows Terminal stuff +PS1="\[\033]133;D;\007\]\[\033]133;A;\007\]$PS1\[\033]133;B;\007\]"
\ No newline at end of file |