Shell updates

zsh: remove oh-my-zsh, update syntax highlighters

Remove carapace

Add some more symbols to starship config
This commit is contained in:
Evie Litherland-Smith 2024-05-16 22:13:09 +01:00
parent 11a7888d42
commit c56e355895

View file

@ -24,7 +24,6 @@
enable = true; enable = true;
config.theme = "catppuccinMocha"; config.theme = "catppuccinMocha";
}; };
carapace.enable = true;
eza = { eza = {
enable = true; enable = true;
enableAliases = true; enableAliases = true;
@ -32,13 +31,6 @@
icons = true; icons = true;
extraOptions = ["--octal-permissions"]; extraOptions = ["--octal-permissions"];
}; };
readline = {
enable = true;
includeSystemConfig = true;
extraConfig = ''
set completion-ignore-case On
'';
};
direnv = { direnv = {
enable = true; enable = true;
nix-direnv.enable = true; nix-direnv.enable = true;
@ -92,6 +84,7 @@
enableTransience = true; enableTransience = true;
settings = { settings = {
add_newline = false; add_newline = false;
c = {symbol = " ";};
character = { character = {
success_symbol = "[󰁔 ](bold green)"; success_symbol = "[󰁔 ](bold green)";
error_symbol = "[󰁔 ](bold red)"; error_symbol = "[󰁔 ](bold red)";
@ -136,12 +129,45 @@
jobs = {symbol = "󰈏 ";}; jobs = {symbol = "󰈏 ";};
line_break = {disabled = false;}; line_break = {disabled = false;};
localip = {disabled = false;}; localip = {disabled = false;};
lua = {symbol = " ";};
memory_usage = {disabled = false;}; memory_usage = {disabled = false;};
nodejs = {symbol = " ";};
os = { os = {
disabled = false; disabled = false;
format = "on [$symbol]($style) "; format = "on [$symbol]($style) ";
symbols = {
Alpine = " ";
Arch = " ";
Artix = " ";
CentOS = " ";
Debian = " ";
EndeavourOS = " ";
Fedora = " ";
FreeBSD = " ";
Gentoo = " ";
Illumos = " ";
Linux = " ";
Macos = " ";
Manjaro = " ";
Mint = " ";
NixOS = " ";
OpenBSD = " ";
openSUSE = " ";
Pop = " ";
Raspbian = " ";
Redhat = " ";
RedHatEnterprise = " ";
Solus = " ";
SUSE = " ";
Ubuntu = " ";
Unknown = " ";
Windows = " ";
};
};
python = {
python_binary = "python3";
symbol = " ";
}; };
python = {python_binary = "python3";};
shell = { shell = {
disabled = false; disabled = false;
format = "using [$indicator ]($style)"; format = "using [$indicator ]($style)";
@ -164,32 +190,34 @@
enable = true; enable = true;
enableCompletion = true; enableCompletion = true;
enableAutosuggestions = true; enableAutosuggestions = true;
syntaxHighlighting.enable = true;
enableVteIntegration = true; enableVteIntegration = true;
autocd = true; autocd = true;
defaultKeymap = "emacs";
syntaxHighlighting = {
enable = true;
highlighters = ["brackets" "cursor"];
};
historySubstringSearch.enable = true; historySubstringSearch.enable = true;
history = { history = {
extended = true; extended = true;
share = true;
ignoreDups = true; ignoreDups = true;
ignoreAllDups = true;
ignoreSpace = true; ignoreSpace = true;
expireDuplicatesFirst = true;
}; };
shellAliases = { shellAliases = {
nixos-upgrade = "systemctl start nixos-upgrade.service"; nixos-upgrade = "systemctl start nixos-upgrade.service";
nixos-status = "systemctl status nixos-upgrade.service"; nixos-status = "systemctl status nixos-upgrade.service";
}; };
oh-my-zsh = { initExtra = ''
enable = true; ## completion config and styling
plugins = ["colored-man-pages" "lol" "rand-quote"]; zstyle ':completion:*' matcher-list 'm:{a-z}={A-Za-z}'
theme = ""; zstyle ':completion:*' menu 'select=long-list'
};
completionInit = ''
autoload -Uz +X compinit && compinit
## case insensitive path-completion ## transient prompt
zstyle ':completion:*' matcher-list 'm:{a-zA-Z}={A-Za-z}' source ${./transient.zsh}
zstyle ':completion:*' menu select
''; '';
initExtra = "source ${./transient.zsh}\n";
}; };
}; };
} }