home/zsh: format, remove dead code
This commit is contained in:
parent
3a6d18e507
commit
84b6e74e7b
55
home/zsh.nix
55
home/zsh.nix
@ -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
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user