mirror of
https://github.com/zoriya/flake.git
synced 2025-12-06 06:36:19 +00:00
Disable extended glob
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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}"
|
||||
|
||||
Reference in New Issue
Block a user