switch to fish from zsh

This commit is contained in:
Seaswimmer 2024-11-22 09:07:36 -05:00
parent 23ccfed77e
commit 4fae84562d
Signed by: cswimr
GPG key ID: 0EC431A8DA8F8087
2 changed files with 8 additions and 12 deletions

View file

@ -49,9 +49,9 @@
./nixos/nvidia.nix ./nixos/nvidia.nix
./nixos/nvim.nix ./nixos/nvim.nix
./nixos/pkg.nix ./nixos/pkg.nix
./nixos/shell.nix
./nixos/sudo.nix ./nixos/sudo.nix
./nixos/tailscale.nix ./nixos/tailscale.nix
./nixos/zsh.nix
{ {
# enable bluetooth # enable bluetooth

View file

@ -57,21 +57,14 @@
add_newline = false; add_newline = false;
}; };
}; };
users.defaultUserShell = pkgs.zsh; users.defaultUserShell = pkgs.fish;
programs.zsh = { programs.fish = {
enable = true; enable = true;
enableCompletion = true;
enableBashCompletion = true;
autosuggestions.enable = true;
syntaxHighlighting.enable = true;
shellInit = '' shellInit = ''
export PATH="$PATH:$HOME/bin:$HOME/.local/bin:$HOME/go/bin" export PATH="$PATH:$HOME/bin:$HOME/.local/bin:$HOME/go/bin"
''; '';
histSize = 10000; shellAliases = let ezaArgs = "--time-style='+%Y-%m-%d %H:%M' --icons=auto";
histFile = "$HOME/.zsh_history";
shellAliases = let ezaArgs = "--time-style='+%Y-%m-%d %H:%M' --icons";
in { in {
ff = "fastfetch"; ff = "fastfetch";
neofetch = "fastfetch"; neofetch = "fastfetch";
@ -90,12 +83,15 @@
ls = "eza ${ezaArgs}"; ls = "eza ${ezaArgs}";
lsa = "eza -lah ${ezaArgs}"; lsa = "eza -lah ${ezaArgs}";
tree = "eza --tree --git-ignore ${ezaArgs}"; tree = "eza --tree --git-ignore ${ezaArgs}";
git = "hub";
create-devenv = "nix flake init --template github:cachix/devenv && direnv allow"; create-devenv = "nix flake init --template github:cachix/devenv && direnv allow";
develop = "nix develop --no-pure-eval"; develop = "nix develop --no-pure-eval";
nixpkgs-update = "nix run --option extra-substituters 'https://nix-community.cachix.org/' --option extra-trusted-public-keys 'nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs=' github:ryantm/nixpkgs-update --";
nixrc = "$EDITOR /etc/nixos"; nixrc = "$EDITOR /etc/nixos";
delete-vscode-settings-backup = "rm -rf ~/.config/Code/User/settings.json.bak";
upd = upd =
"sudo nixos-generate-config --dir /etc/nixos/hosts && sudo rm /etc/nixos/hosts/configuration.nix && sudo mv /etc/nixos/hosts/hardware-configuration.nix /etc/nixos/hosts/$(hostname).nix && git -C /etc/nixos --git-dir=/etc/nixos/.git add /etc/nixos/hosts/$(hostname).nix && sudo nixos-rebuild switch"; "sudo nixos-generate-config --dir /etc/nixos/hosts && sudo rm /etc/nixos/hosts/configuration.nix && sudo mv /etc/nixos/hosts/hardware-configuration.nix /etc/nixos/hosts/$(hostname).nix && git -C /etc/nixos --git-dir=/etc/nixos/.git add /etc/nixos/hosts/$(hostname).nix && delete-vscode-settings-backup && sudo nixos-rebuild switch --flake /etc/nixos";
taildrop = "tailscale file"; taildrop = "tailscale file";