Disable extended glob

This commit is contained in:
2025-09-30 13:09:07 +02:00
parent 835176af6b
commit 3a43ad343b
3 changed files with 4 additions and 10 deletions

View File

@@ -73,7 +73,7 @@
# Misc
dc = "docker compose";
dcd = "docker compose -f (../)#docker-compose.dev.yml";
dcd = "docker compose -f $(setopt extendedglob; echo (../)#docker-compose.dev.yml)";
op =
if pkgs.stdenv.isLinux
then "xdg-open"
@@ -206,7 +206,6 @@
setopt rm_star_silent
setopt interactivecomments
setopt autopushd
setopt extendedglob
# disable space between right prompt and end of line
ZLE_RPROMPT_INDENT=0

View File

@@ -84,11 +84,6 @@ touchp() {
mkdir -p "$(dirname "$1")" && touch "$1"
}
proxy() {
echo "Proxying port $1 to http://proxy.sdg.moe"
ssh -NR "5000:localhost:$1" zoriya@ssh.sdg.moe
}
s() {
git status 2>/dev/null
if [[ $? -ne 0 ]]; then

View File

@@ -45,13 +45,13 @@ NEWLINE=$'\n'
WORKDIR='%B%F{blue}%~%b%f'
RO='%F{red}$([ -w . ] || echo ':ro")%f"
# from gitstatusd, sourced before this prompt script
GIT='($GITSTATUS_PROMPT)'
KUBE='%F{cyan}$KCTX/$KNS%f'
GIT='${GITSTATUS_PROMPT:+ ($GITSTATUS_PROMPT)}'
KUBE='%F{cyan}$KCTX${KNS:+/$KNS}%f'
PROMPT_SHLVL='%(?.%F{green}.%F{red})$(printf "%.0s" {1..$SHLVL})%f'
EXEC_TIME=""
EXIT_CODE=' %(?..%F{red}x${(j[|])pipestatus}%f)'
JOBS=' %F{cyan}%(1j.&%j.)%f'
export PROMPT="${FILL}${NEWLINE}$WORKDIR$RO $GIT $KUBE $PROMPT_SHLVL "
export PROMPT="${FILL}${NEWLINE}${WORKDIR}$RO$GIT $KUBE $PROMPT_SHLVL "
export RPROMPT="\${EXEC_TIME}${EXIT_CODE}${JOBS}"