added stuff

This commit is contained in:
vali 2024-04-09 23:11:33 +02:00
commit 7d4f626b7d
907 changed files with 70990 additions and 0 deletions

View file

@ -0,0 +1,31 @@
# Define a function to set Zsh options
function set_zsh_options() {
local options=(
"AUTO_CD" # if not command, then directory
"AUTO_LIST" # list choices on ambiguous completion
"AUTO_MENU" # use menu completion after the second consecutive request for completion
"AUTO_PARAM_SLASH" # if parameter is completed whose content is the name of a directory, then add trailing slash instead of space
"AUTO_PUSHD" # make cd push the old directory onto the directory stack
"APPEND_HISTORY" # append history list to the history file, rather than replace it
"ALWAYS_TO_END" # cursor is moved to the end of the word after completion
"CORRECT" # try to correct the spelling of commands
"EXTENDED_HISTORY" # save each commands beginning timestamp and the duration to the history file
"HIST_FCNTL_LOCK" # use systems fcntl call to lock the history file
"HIST_REDUCE_BLANKS" # remove superfluous blanks
"HIST_SAVE_NO_DUPS" # older commands that duplicate newer ones are omitted
"HIST_VERIFY" # dont execute the line directly; instead perform history expansion and reload the line into the editing buffer
"INC_APPEND_HISTORY" # new history lines are added to the $HISTFILE incrementally (as soon as they are entered)
"INTERACTIVE_COMMENTS" # allow comments even in interactive shells
"MENU_COMPLETE" # insert the first match immediately on ambiguous completion
"NO_NOMATCH" # not explained, probably disables NOMATCH lmao
"PUSHD_IGNORE_DUPS" # dont push multiple copies of the same directory
"PUSHD_TO_HOME" # have pushd with no arguments act like `pushd $HOME`
"PUSHD_SILENT" # do not print the directory stack
)
for option in "${options[@]}"; do
setopt $option
done
}
set_zsh_options