config/shell: improve server compatibility
This commit is contained in:
parent
b1de4bcbaa
commit
e2185ac4ce
|
@ -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'
|
||||
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
|
@ -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
|
||||
|
Loading…
Reference in New Issue