aboutsummaryrefslogtreecommitdiff
path: root/config/all/zsh/30-behavior.zsh
diff options
context:
space:
mode:
authorMatt Singleton <matt@xcolour.net>2024-04-11 16:21:15 -0500
committerMatt Singleton <matt@xcolour.net>2024-04-11 16:21:15 -0500
commitf2dfde23f8157da1532a2b2e236af529fed47713 (patch)
treed5eabb0eb33d100304ee16596b2a43dfb4a68d1c /config/all/zsh/30-behavior.zsh
parent7f67d28e18760154778f20da43772838c36734ed (diff)
replace janky deploy script with stow and make
re-orgs all the console oriented dotfiles to be stowable makefile to deploy everything move from vimplug to native vim packages cleanup script for blowing away old symlinks
Diffstat (limited to 'config/all/zsh/30-behavior.zsh')
-rw-r--r--config/all/zsh/30-behavior.zsh54
1 files changed, 0 insertions, 54 deletions
diff --git a/config/all/zsh/30-behavior.zsh b/config/all/zsh/30-behavior.zsh
deleted file mode 100644
index 6b2b2c2..0000000
--- a/config/all/zsh/30-behavior.zsh
+++ /dev/null
@@ -1,54 +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
-
-# make sure $TERM is installed
-# if not, fall back on xterm-256color
-infocmp "$TERM" > /dev/null 2>&1 || export TERM=xterm-256color
-
-# set term title appropriately based on term type
-# user@host:current_dir (current_command)
-case "$TERM" in
- xterm*|rxvt*|screen*|alacritty*|foot)
- term_preexec () {
- printf '\e]0;%s (%s)\a' ${(%):-'%n@%m:%~'} "$1"
- }
- term_precmd () {
- printf '\e]0;%s\a' ${(%):-'%n@%m:%~'}
- }
- ;;
-esac
-
-#
-# 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