diff --git a/.config/shell/functions b/.config/shell/functions index b4a2efd..7362eb5 100644 --- a/.config/shell/functions +++ b/.config/shell/functions @@ -268,7 +268,7 @@ cl() { # FILES -alias f='noglob fd --hidden --no-ignore-vcs' +alias f="noglob $(test -x "$(which fd)" && echo fd || echo "fdfind") --hidden --no-ignore-vcs" #alias f='find -not -path "*.sync*" -and -not \( -name daten -prune \)' #alias f1='find -mindepth 1 -maxdepth 1' diff --git a/.config/zsh/.zshrc b/.config/zsh/.zshrc index fb7a2c3..472c622 100644 --- a/.config/zsh/.zshrc +++ b/.config/zsh/.zshrc @@ -50,6 +50,7 @@ _comp_options+=(globdots) # Show files starting with dot in autocomplete fpath=($fpath "$CONFIG_ZSH/zsh_completion") # Custom completions ZSH_COMPDUMP="$XDG_CACHE_HOME/zsh/zcompdump-$ZSH_VERSION" # Cache completions DISABLE_UPDATE_PROMPT=true +ZSH_DISABLE_COMPFIX=true source $ZSH/oh-my-zsh.sh diff --git a/.local/bin/scripts/git-initserver b/.local/bin/scripts/git-initserver new file mode 100755 index 0000000..2791b96 --- /dev/null +++ b/.local/bin/scripts/git-initserver @@ -0,0 +1,8 @@ +#!/bin/sh +git init -b main +git config -v receive.denyCurrentBranch false +hook=".git/hooks/post-receive" +echo '#!/bin/sh +git --work-tree=.. checkout -f' >$hook +chmod -v +x $hook +