this repo has no description
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

zsh: smite history

Seth Etter cb7eaa27 f54772cc

+22
+22
zsh/zshenv
··· 62 62 tmux switch -t $session_name 63 63 } 64 64 65 + # https://esham.io/2025/05/shell-history 66 + function smite() { 67 + setopt LOCAL_OPTIONS ERR_RETURN PIPE_FAIL 68 + 69 + local opts=( -I ) 70 + if [[ $1 == '-a' ]]; then 71 + opts=() 72 + elif [[ -n $1 ]]; then 73 + print >&2 'usage: smite [-a]' 74 + return 1 75 + fi 76 + 77 + fc -l -n $opts 1 | \ 78 + fzf --no-sort --tac --multi | \ 79 + while IFS='' read -r command_to_delete; do 80 + printf 'Removing history entry "%s"\n' $command_to_delete 81 + local HISTORY_IGNORE="${(b)command_to_delete}" 82 + fc -W 83 + fc -p $HISTFILE $HISTSIZE $SAVEHIST 84 + done 85 + } 86 + 65 87 function syncsys { 66 88 cd $DOTFILES_DIR 67 89 git pull --rebase