fzf-tab completion

shell aliases
This commit is contained in:
Sangmin Kim 2025-04-04 07:36:28 +09:00
parent 1304d72517
commit f91c4ff01e
3 changed files with 14 additions and 2 deletions

View file

@ -30,7 +30,6 @@
darwin, darwin,
... ...
}: let }: let
# TODO replace with your own username, system and hostname
username = "poby"; username = "poby";
system = "aarch64-darwin"; system = "aarch64-darwin";
hostname = "pobys-macbook-pro"; hostname = "pobys-macbook-pro";

View file

@ -36,6 +36,8 @@
tree tree
zoxide zoxide
zsh-powerlevel10k zsh-powerlevel10k
zsh-fzf-tab
commitizen
# GUI # GUI
alt-tab-macos alt-tab-macos

View file

@ -210,6 +210,7 @@
enableFzfHistory = true; enableFzfHistory = true;
promptInit = '' promptInit = ''
source ${pkgs.zsh-powerlevel10k}/share/zsh-powerlevel10k/powerlevel10k.zsh-theme source ${pkgs.zsh-powerlevel10k}/share/zsh-powerlevel10k/powerlevel10k.zsh-theme
source ${pkgs.zsh-fzf-tab}/share/fzf-tab/fzf-tab.plugin.zsh
''; '';
}; };
@ -218,7 +219,17 @@
pkgs.zsh pkgs.zsh
]; ];
shellAliases = { shellAliases = {
rebuild = "darwin-rebuild switch --flake ~/.config/nix-darwin"; ls = "lsd --color=auto";
l = "lsd -lhG";
ll = "lsd -alhG";
lh = "lsd -dl .*";
lsd = "lsd --group-directories-first";
filecount="find . -type f | wc -l";
cat = "bat --color=always";
man = "tldr";
nixrebuild = "darwin-rebuild switch --flake ~/.config/nix-darwin";
nixconfig = "code ~/.config/nix-darwin";
sshconfig = "code ~/.ssh/config";
}; };
}; };