home/zsh: update pure prompt, format
This commit is contained in:
parent
8791c104e1
commit
f2015b81da
@ -42,8 +42,8 @@
|
|||||||
src = pkgs.fetchFromGitHub {
|
src = pkgs.fetchFromGitHub {
|
||||||
owner = "sindresorhus";
|
owner = "sindresorhus";
|
||||||
repo = "pure";
|
repo = "pure";
|
||||||
rev = "a02209d36c8509c0e62f44324127632999c9c0cf";
|
rev = "92b8e9057988566b37ff695e70e2e9bbeb7196c8";
|
||||||
hash = "sha256-BmQO4xqd/3QnpLUitD2obVxL0UulpboT8jGNEh4ri8k=";
|
hash = "sha256-TbOrnhLHgOvcfsgmL0l3bWY33yLIhG1KSi4ITIPq1+A=";
|
||||||
};
|
};
|
||||||
file = "pure.plugin.zsh";
|
file = "pure.plugin.zsh";
|
||||||
}
|
}
|
||||||
@ -95,12 +95,12 @@
|
|||||||
zstyle ':completion:*' matcher-list 'm:{a-z}={A-Za-z}'
|
zstyle ':completion:*' matcher-list 'm:{a-z}={A-Za-z}'
|
||||||
|
|
||||||
if [[ -n "$PS1" ]] && [[ -z "$TMUX" ]] && [[ -n "$SSH_CONNECTION" ]]; then
|
if [[ -n "$PS1" ]] && [[ -z "$TMUX" ]] && [[ -n "$SSH_CONNECTION" ]]; then
|
||||||
TMUX_EXE="${pkgs.tmux}/bin/tmux"
|
TMUX_EXE="${pkgs.tmux}/bin/tmux"
|
||||||
systemd-run --scope --user $TMUX_EXE attach-session -t $USER || systemd-run --scope --user $TMUX_EXE new-session -s $USER
|
systemd-run --scope --user $TMUX_EXE attach-session -t $USER || systemd-run --scope --user $TMUX_EXE new-session -s $USER
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [[ -n "$BUBBLEWRAP_DIR" ]]; then
|
if [[ -n "$BUBBLEWRAP_DIR" ]]; then
|
||||||
RPS1="{{$BUBBLEWRAP_DIR}}"
|
RPS1="{{$BUBBLEWRAP_DIR}}"
|
||||||
fi
|
fi
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user