config/zsh: update basic config

This commit is contained in:
xeruf 2021-12-02 10:43:35 +01:00
parent ebf05c0064
commit 891663aea0
3 changed files with 16 additions and 6 deletions

View File

@ -1482,7 +1482,7 @@
# Current time color.
typeset -g POWERLEVEL9K_TIME_FOREGROUND=66
# Format for the current time: 09:51:02. See `man 3 strftime`.
typeset -g POWERLEVEL9K_TIME_FORMAT='%D{%H:%M:%S}'
typeset -g POWERLEVEL9K_TIME_FORMAT='%D{%a %d %H:%M:%S}'
# If set to true, time will update when you hit enter. This way prompts for the past
# commands will contain the start times of their commands as opposed to the default
# behavior where they contain the end times of their preceding commands.

View File

@ -144,11 +144,20 @@ export KEYTIMEOUT=1
# turn on spelling correction
setopt correct
# don't save duplicates in command history
setopt histignoredups
# command history - https://unix.stackexchange.com/a/273863
HISTSIZE=100000
SAVEHIST=$HISTSIZE
setopt inc_append_history
setopt share_history
setopt hist_expire_dups_first
setopt hist_ignore_dups
setopt hist_find_no_dups
setopt hist_save_no_dups
setopt hist_reduce_blanks
unsetopt hist_ignore_space
setopt EXTENDED_GLOB
unsetopt CASE_GLOB
setopt extended_glob
unsetopt case_glob
setopt pipefail

View File

@ -13,7 +13,7 @@ export JOURNAL="$(eval "dirname $(grep -1 journals $XDG_CONFIG_HOME/jrnl/jrnl.ya
echo "$DATA/2-standards/box/journal")"
export PATH="$HOME/.local/bin/scripts:$HOME/.local/bin:$PATH:$XDG_CONFIG_HOME/emacs/bin"
# adjust programs to use xdg
export MNT="$XDG_RUNTIME_DIR"/mnt
export MNT=/run/media/$USER
export XAUTHORITY="$XDG_RUNTIME_DIR"/Xauthority
export GNUPGHOME="$XDG_DATA_HOME"/gnupg
@ -21,6 +21,7 @@ export PASSWORD_STORE_DIR="$XDG_DATA_HOME"/pass
export GTK2_RC_FILES="$XDG_CONFIG_HOME"/gtk-2.0/gtkrc
export KDEHOME="$XDG_STATE_HOME"/kdehome
export DOOMLOCALDIR="$XDG_STATE_HOME"/emacs
export WINEPREFIX="$XDG_DATA_HOME"/wine
export RLWRAP_HOME="$XDG_DATA_HOME"/rlwrap