add fish shell alias
This commit is contained in:
parent
36b9f4e2b0
commit
3b8a896dde
2 changed files with 17 additions and 1 deletions
|
|
@ -1,4 +1,15 @@
|
|||
{ 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 = {
|
||||
# nushell = {
|
||||
|
|
@ -7,6 +18,7 @@
|
|||
# envFile.source = ../config/nushell/env.nu;
|
||||
# };
|
||||
|
||||
|
||||
fish = {
|
||||
enable = true;
|
||||
interactiveShellInit = ''
|
||||
|
|
@ -14,8 +26,8 @@
|
|||
'';
|
||||
plugins = [
|
||||
{ name = "grc"; src = pkgs.fishPlugins.grc.src; }
|
||||
# Other plugins can be located in config file
|
||||
];
|
||||
shellAliases = shellAlias;
|
||||
};
|
||||
|
||||
carapace = {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue