feat: switch from zsh to fish

This commit is contained in:
Youwen Wu 2024-07-30 04:12:33 -07:00
parent 420d932dec
commit 7f72b8f1a0
Signed by: youwen5
GPG key ID: 865658ED1FE61EC3
3 changed files with 22 additions and 76 deletions

View file

@ -219,8 +219,9 @@
nvidiaSettings = true; nvidiaSettings = true;
}; };
programs.zsh.enable = true; programs.zsh.enable = false;
users.users.youwen.shell = pkgs.zsh; programs.fish.enable = true;
users.users.youwen.shell = pkgs.fish;
fonts = { fonts = {
enableDefaultPackages = true; enableDefaultPackages = true;

View file

@ -495,7 +495,8 @@
programs.zoxide = { programs.zoxide = {
enable = true; enable = true;
enableZshIntegration = true; # enableZshIntegration = true;
enableFishIntegration = true;
}; };
programs.gh = { programs.gh = {
@ -505,14 +506,14 @@
programs.oh-my-posh = { programs.oh-my-posh = {
enable = true; enable = true;
enableZshIntegration = true; # enableZshIntegration = true;
enableFishIntegration = true;
enableBashIntegration = true; enableBashIntegration = true;
settings = with builtins; useTheme = "catppuccin_macchiato";
fromJSON (unsafeDiscardStringContext (readFile ./prompt.omp.json));
}; };
programs.zsh = { programs.zsh = {
enable = true; enable = false;
enableCompletion = true; enableCompletion = true;
autosuggestion.enable = true; autosuggestion.enable = true;
syntaxHighlighting.enable = true; syntaxHighlighting.enable = true;
@ -540,7 +541,19 @@
}; };
}; };
programs.bash = { enable = true; }; programs.fish = {
enable = true;
shellAliases = {
rebuild = "sudo nixos-rebuild switch";
ls = "eza -l --icons=auto";
};
interactiveShellInit = ''
fish_vi_key_bindings
set -g fish_greeting
'';
};
programs.bash.enable = true;
programs.librewolf = { programs.librewolf = {
enable = true; enable = true;

View file

@ -1,68 +0,0 @@
{
"$schema": "https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/schema.json",
"palette": {
"os": "#ACB0BE",
"closer": "p:os",
"pink": "#F5BDE6",
"lavender": "#B7BDF8",
"blue": "#8AADF4"
},
"blocks": [
{
"alignment": "left",
"segments": [
{
"foreground": "p:os",
"style": "plain",
"template": "{{.Icon}} ",
"type": "os"
},
{
"foreground": "p:blue",
"style": "plain",
"template": "{{ .UserName }}@{{ .HostName }} ",
"type": "session"
},
{
"foreground": "p:pink",
"properties": {
"folder_icon": "..\ue5fe..",
"home_icon": "~",
"style": "agnoster_short"
},
"style": "plain",
"template": "{{ .Path }} ",
"type": "path"
},
{
"foreground": "p:lavender",
"properties": {
"branch_icon": "\ue725 ",
"cherry_pick_icon": "\ue29b ",
"commit_icon": "\uf417 ",
"fetch_status": false,
"fetch_upstream_icon": false,
"merge_icon": "\ue727 ",
"no_commits_icon": "\uf0c3 ",
"rebase_icon": "\ue728 ",
"revert_icon": "\uf0e2 ",
"tag_icon": "\uf412 "
},
"template": "{{ .HEAD }} ",
"style": "plain",
"type": "git"
},
{
"style": "plain",
"foreground": "p:closer",
"template": "\uf105",
"type": "text"
}
],
"type": "prompt"
}
],
"final_space": true,
"version": 2,
"disable_notice": true
}