add fish shell alias

This commit is contained in:
DACHXY 2024-12-25 17:15:51 +08:00
parent 36b9f4e2b0
commit 3b8a896dde
2 changed files with 17 additions and 1 deletions

View file

@ -32,6 +32,10 @@ bind = $mainMod, l, movefocus, r
bind = $mainMod, k, movefocus, u bind = $mainMod, k, movefocus, u
bind = $mainMod, j, movefocus, d bind = $mainMod, j, movefocus, d
# Workspace Scroll
bind = $mainMod, mouse_down, workspace, e-1
bind = $mainMod, mouse_up, workspace, e+1
bind = $mainMod, 1, workspace, 1 bind = $mainMod, 1, workspace, 1
bind = $mainMod, 2, workspace, 2 bind = $mainMod, 2, workspace, 2
bind = $mainMod, 3, workspace, 3 bind = $mainMod, 3, workspace, 3

View file

@ -1,4 +1,15 @@
{ pkgs, ... }: { pkgs, ... }:
let
shellAlias = {
ls = "exa";
cat = "bat";
rebuild = "sudo nixos-rebuild switch --flake /etc/nixos";
fullClean = "nix-collect-garbage --delete-old && sudo nix-collect-garbage -d && sudo /run/current-system/bin/switch-to-configuration boot";
setWindows = "sudo bootctl set-oneshot auto-windows";
goWin = "sudo bootctl set-oneshot auto-windows && reboot";
goBios = "sudo bootctl set-onshot auto-reboot-to-firmware-setup && reboot";
};
in
{ {
programs = { programs = {
# nushell = { # nushell = {
@ -7,6 +18,7 @@
# envFile.source = ../config/nushell/env.nu; # envFile.source = ../config/nushell/env.nu;
# }; # };
fish = { fish = {
enable = true; enable = true;
interactiveShellInit = '' interactiveShellInit = ''
@ -14,8 +26,8 @@
''; '';
plugins = [ plugins = [
{ name = "grc"; src = pkgs.fishPlugins.grc.src; } { name = "grc"; src = pkgs.fishPlugins.grc.src; }
# Other plugins can be located in config file
]; ];
shellAliases = shellAlias;
}; };
carapace = { carapace = {