| 123456789101112131415161718192021222324252627282930313233343536373839404142434445 |
- # History Config
- setopt interactivecomments
- setopt EXTENDED_HISTORY
- setopt HIST_EXPIRE_DUPS_FIRST
- setopt HIST_IGNORE_DUPS
- setopt HIST_IGNORE_ALL_DUPS
- setopt HIST_IGNORE_SPACE
- setopt HIST_FIND_NO_DUPS
- setopt HIST_SAVE_NO_DUPS
- setopt HIST_BEEP
- setopt INC_APPEND_HISTORY
- setopt HIST_FCNTL_LOCK
- setopt SHARE_HISTORY
- setopt AUTO_CD
- # History file configuration - per host
- HISTORY_IGNORE='(*.git/hooks*)'
- LESSHISTFILE="-"
- HISTFILE="$ZDOTDIR/zsh_history_$HOST"
- HISTFILESIZE=100000
- HISTSIZE=100000
- SAVEHIST=100000
- # Ensure history file exists and has proper permissions
- if [[ ! -f "$HISTFILE" ]]; then
- touch "$HISTFILE"
- chmod 644 "$HISTFILE" # More permissive permissions
- fi
- # AWS Vault configuration
- export AWS_VAULT_PL_MFA=inline
- export AWS_VAULT_PL_CHAR=" "
- prompt_aws_vault() {
- local vault_segment
- vault_segment="`prompt_aws_vault_segment`"
- if [[ $vault_segment != '' ]]; then
- echo -n " %F{yellow}$vault_segment%f"
- fi
- }
- MNML_INFOLN=()
- MNML_PROMPT=( mnml_ssh mnml_status 'mnml_cwd 2 0' mnml_git prompt_aws_vault mnml_keymap )
- MNML_RPROMPT=()
- MNML_NORMAL_CHAR="◉"
|