mirror of
https://github.com/Ahwxorg/nixos-config.git
synced 2025-12-04 15:00:13 +01:00
chore: adds a few zsh widgets; adds fzf-zsh-plugin
This commit is contained in:
parent
ed7de38307
commit
c058b40299
1 changed files with 24 additions and 3 deletions
|
|
@ -147,6 +147,19 @@
|
||||||
zle -N nix-search-fzf-shell-widget
|
zle -N nix-search-fzf-shell-widget
|
||||||
bindkey '^O' nix-search-fzf-shell-widget
|
bindkey '^O' nix-search-fzf-shell-widget
|
||||||
|
|
||||||
|
# Use fzf as a history widget
|
||||||
|
zle -N fzf-history-widget
|
||||||
|
bindkey '^R' fzf-history-widget
|
||||||
|
bindkey -M viins '^R' fzf-history-widget
|
||||||
|
bindkey -M vicmd '^R' fzf-history-widget
|
||||||
|
|
||||||
|
# Use fzf as a cd completion widget
|
||||||
|
zle -N fzf-cd-widget
|
||||||
|
bindkey '^G' fzf-cd-widget
|
||||||
|
|
||||||
|
# Use fzf as a file completion widget
|
||||||
|
zle -N fzf-file-widget
|
||||||
|
bindkey '^F' fzf-file-widget
|
||||||
|
|
||||||
# if [[ $(which sxiv&>/dev/null && echo 1) == "1" ]]; then
|
# if [[ $(which sxiv&>/dev/null && echo 1) == "1" ]]; then
|
||||||
# alias imv="sxiv"
|
# alias imv="sxiv"
|
||||||
|
|
@ -172,8 +185,7 @@
|
||||||
g = "git";
|
g = "git";
|
||||||
gp = "git pull";
|
gp = "git pull";
|
||||||
|
|
||||||
calc = "eva";
|
wiki = "wikit";
|
||||||
wikipedia = "wikit";
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
@ -262,9 +274,18 @@
|
||||||
sha256 = "0na6b5b46k4473c53mv1wkb009i6b592gxpjq94bdnlz1kkcqwg6";
|
sha256 = "0na6b5b46k4473c53mv1wkb009i6b592gxpjq94bdnlz1kkcqwg6";
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
{
|
||||||
|
name = "fzf-zsh-plugin";
|
||||||
|
src = fetchFromGitHub {
|
||||||
|
owner = "unixorn";
|
||||||
|
repo = "fzf-zsh-plugin";
|
||||||
|
rev = "04ae801499a7844c87ff1d7b97cdf57530856c65";
|
||||||
|
sha256 = "sha256-FEGhx36Z5pqHEOgPsidiHDN5SXviqMsf6t6hUZo+I8A=";
|
||||||
|
};
|
||||||
|
file = "fzf-zsh-plugin.plugin.zsh";
|
||||||
|
}
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
fzf = {
|
fzf = {
|
||||||
enable = true;
|
enable = true;
|
||||||
enableZshIntegration = true;
|
enableZshIntegration = true;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue