home/zsh: format, remove dead code

This commit is contained in:
Asmir A 2024-04-12 21:48:25 +02:00
parent 3a6d18e507
commit 84b6e74e7b
Signed by: asmir
GPG Key ID: 020C42B7A9ABA3E2

View File

@ -1,9 +1,4 @@
{ {pkgs, ...}: {
config,
lib,
pkgs,
...
}: {
programs.z-lua = { programs.z-lua = {
enableAliases = true; enableAliases = true;
enableZshIntegration = true; enableZshIntegration = true;
@ -77,36 +72,36 @@
envExtra = ''''; envExtra = '''';
initExtra = '' initExtra = ''
# binds # binds
bindkey '^K' fzf-file-widget bindkey '^K' fzf-file-widget
# options # options
setopt nobeep setopt nobeep
setopt nopromptcr setopt nopromptcr
setopt c_bases setopt c_bases
setopt completeinword setopt completeinword
setopt completealiases setopt completealiases
setopt notify setopt notify
# #
RPS1="" RPS1=""
# #
function chpwd() { function chpwd() {
ls; ls;
} }
eval "$(direnv hook zsh)" eval "$(direnv hook zsh)"
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
''; '';
}; };
} }