mirror of
https://git.sr.ht/~rouven/nixos-config
synced 2025-01-18 17:11:39 +01:00
zsh: attempt to fix fzf-tab
This commit is contained in:
parent
2297f6506d
commit
1474c79742
2 changed files with 17 additions and 6 deletions
|
@ -47,6 +47,17 @@ in
|
|||
withHiredis = false;
|
||||
};
|
||||
|
||||
zsh-fzf-tab = prev.zsh-fzf-tab.overrideAttrs (_: rec {
|
||||
version = "1.1.1";
|
||||
src = fetchFromGitHub {
|
||||
owner = "Aloxaf";
|
||||
repo = "fzf-tab";
|
||||
rev = "v${version}";
|
||||
sha256 = "sha256-0/YOL1/G2SWncbLNaclSYUz7VyfWu+OB8TYJYm4NYkM=";
|
||||
};
|
||||
|
||||
});
|
||||
|
||||
gnome-break-timer = callPackage ../pkgs/gnome-break-timer { };
|
||||
jmri = callPackage ../pkgs/jmri { };
|
||||
adguardian-term = callPackage ../pkgs/adguardian-term { };
|
||||
|
|
|
@ -3,7 +3,6 @@
|
|||
programs.command-not-found.enable = false;
|
||||
programs.nix-index-database.comma.enable = true;
|
||||
environment.systemPackages = with pkgs; [
|
||||
# fzf
|
||||
bat
|
||||
eza
|
||||
duf
|
||||
|
@ -12,6 +11,7 @@
|
|||
iperf
|
||||
];
|
||||
users.defaultUserShell = pkgs.zsh;
|
||||
programs.fzf.enable = true;
|
||||
programs.zsh = {
|
||||
enable = true;
|
||||
shellAliases = {
|
||||
|
@ -49,7 +49,7 @@
|
|||
|
||||
|
||||
function svpn() {
|
||||
unit=$(systemctl list-unit-files | grep "openconnect\|wg-quick\|wireguard\|openvpn\|openfortivpn" | cut -d "." -f1 | fzf --preview 'systemctl status {}')
|
||||
unit=$(systemctl list-unit-files | grep "openconnect\|wg-quick\|wireguard\|openvpn\|openfortivpn" | cut -d "." -f1 | ${pkgs.fzf}/bin/fzf --preview 'systemctl status {}')
|
||||
if [ $(systemctl is-active $unit) = "inactive" ]; then
|
||||
systemctl start $unit
|
||||
else
|
||||
|
@ -85,10 +85,10 @@
|
|||
'';
|
||||
promptInit =
|
||||
''
|
||||
if [[ "$(hostname)" == "thinkpad" ]]
|
||||
then
|
||||
cat ${../images/cat.sixel}
|
||||
fi
|
||||
# if [[ "$(hostname)" == "thinkpad" ]]
|
||||
# then
|
||||
# cat ${../images/cat.sixel}
|
||||
# fi
|
||||
eval "$(${pkgs.mcfly}/bin/mcfly init zsh)"
|
||||
eval "$(${pkgs.zoxide}/bin/zoxide init zsh)"
|
||||
'';
|
||||
|
|
Loading…
Reference in a new issue