diff options
author | Matt Singleton <matt@xcolour.net> | 2021-02-09 19:26:11 -0600 |
---|---|---|
committer | Matt Singleton <matt@xcolour.net> | 2021-02-09 19:26:11 -0600 |
commit | b9e3d4d14316054a306914e710157d3e03b5aa25 (patch) | |
tree | 5e7ec5aaba7847234000ae6801d23979360db213 /config/zsh/behavior.zsh | |
parent | 472ba71fd7e646ea82a332e0ecbe6a836512f28d (diff) |
refactor zsh
Diffstat (limited to 'config/zsh/behavior.zsh')
-rw-r--r-- | config/zsh/behavior.zsh | 65 |
1 files changed, 0 insertions, 65 deletions
diff --git a/config/zsh/behavior.zsh b/config/zsh/behavior.zsh deleted file mode 100644 index e7e6b81..0000000 --- a/config/zsh/behavior.zsh +++ /dev/null @@ -1,65 +0,0 @@ -# -# execution - -setopt rm_star_wait # wait 10 seconds before accepting 'rm *' confirmation -export REPORTTIME=5 # report timing for any command longer than 5 seconds -unsetopt flowcontrol # disable ^s from freezing the terminal - -# -# history - -HISTFILE="${XDG_DATA_HOME:-${HOME}/.local/share}/zsh/history" -HISTSIZE=10000 -SAVEHIST=10000 - -setopt hist_ignore_all_dups # ignore dups including non-sequential ones -setopt share_history # share command history data between sessions -setopt hist_verify # load hist into command buffer rather than exec immediately - -# -# term support - -# set term title appropriately based on term type -# user@host:current_dir (current_command) -case "$TERM" in - xterm*|rxvt*|screen*|alacritty*) - term_preexec () { - printf '\e]0;%s (%s)\a' ${(%):-'%n@%m:%~'} "$1" - } - term_precmd () { - printf '\e]0;%s\a' ${(%):-'%n@%m:%~'} - } - ;; -esac - -# -# virtualenv - -if [ -e /usr/local/bin/virtualenvwrapper_lazy.sh ]; then - vew=/usr/local/bin/virtualenvwrapper_lazy.sh -elif [ -e /usr/share/virtualenvwrapper/virtualenvwrapper_lazy.sh ]; then - vew=/usr/share/virtualenvwrapper/virtualenvwrapper_lazy.sh -fi - -if [ -n "$vew" ]; then - export VIRTUAL_ENV_DISABLE_PROMPT=true - export WORKON_HOME=~/.virtualenv/envs - source $vew -fi - -# -# draw a horizontal separator - -function hr { - printf "$bg[red]${(l:$COLUMNS:: :)}$reset_color\n" - printf "$bg[yellow]${(l:$COLUMNS:: :)}\n" - printf "$bg[green]${(l:$COLUMNS:: :)}\n" - printf "$bg[cyan]${(l:$COLUMNS:: :)}\n" - printf "$bg[blue]${(l:$COLUMNS:: :)}\n" - printf "$bg[magenta]${(l:$COLUMNS:: :)}$reset_color\n" -} - -# -# less - -export LESS=-i |