config/shell: improve server compatibility

This commit is contained in:
xerus2000 2021-03-03 14:43:16 +01:00
parent b1de4bcbaa
commit e2185ac4ce
3 changed files with 10 additions and 1 deletions

View File

@ -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'

View File

@ -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

View File

@ -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