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;
config.theme = "catppuccinMocha";
};
carapace.enable = true;
eza = {
enable = true;
enableAliases = true;
@ -32,13 +31,6 @@
icons = true;
extraOptions = ["--octal-permissions"];
};
readline = {
enable = true;
includeSystemConfig = true;
extraConfig = ''
set completion-ignore-case On
'';
};
direnv = {
enable = true;
nix-direnv.enable = true;
@ -92,6 +84,7 @@
enableTransience = true;
settings = {
add_newline = false;
c = {symbol = " ";};
character = {
success_symbol = "[󰁔 ](bold green)";
error_symbol = "[󰁔 ](bold red)";
@ -136,12 +129,45 @@
jobs = {symbol = "󰈏 ";};
line_break = {disabled = false;};
localip = {disabled = false;};
lua = {symbol = " ";};
memory_usage = {disabled = false;};
nodejs = {symbol = " ";};
os = {
disabled = false;
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 = {
disabled = false;
format = "using [$indicator ]($style)";
@ -164,32 +190,34 @@
enable = true;
enableCompletion = true;
enableAutosuggestions = true;
syntaxHighlighting.enable = true;
enableVteIntegration = true;
autocd = true;
defaultKeymap = "emacs";
syntaxHighlighting = {
enable = true;
highlighters = ["brackets" "cursor"];
};
historySubstringSearch.enable = true;
history = {
extended = true;
share = true;
ignoreDups = true;
ignoreAllDups = true;
ignoreSpace = true;
expireDuplicatesFirst = true;
};
shellAliases = {
nixos-upgrade = "systemctl start nixos-upgrade.service";
nixos-status = "systemctl status nixos-upgrade.service";
};
oh-my-zsh = {
enable = true;
plugins = ["colored-man-pages" "lol" "rand-quote"];
theme = "";
};
completionInit = ''
autoload -Uz +X compinit && compinit
initExtra = ''
## completion config and styling
zstyle ':completion:*' matcher-list 'm:{a-z}={A-Za-z}'
zstyle ':completion:*' menu 'select=long-list'
## case insensitive path-completion
zstyle ':completion:*' matcher-list 'm:{a-zA-Z}={A-Za-z}'
zstyle ':completion:*' menu select
## transient prompt
source ${./transient.zsh}
'';
initExtra = "source ${./transient.zsh}\n";
};
};
}