mirror of
https://github.com/tomasriveral/nixos.git
synced 2026-08-12 02:28:37 +02:00
removed oh-my-posh/ use oh-my-zsh with some plugins + add a custom cat using colorize plugin
This commit is contained in:
@@ -151,7 +151,8 @@ libreoffice
|
|||||||
gruvbox-gtk-theme
|
gruvbox-gtk-theme
|
||||||
hyprpicker
|
hyprpicker
|
||||||
powertop
|
powertop
|
||||||
telnet
|
inetutils # collections of network programs such as telnet
|
||||||
|
python313Packages.pygments # used for ccat (comment of colorize plugin from oh-my-zsh)
|
||||||
#we need to install gnome and kde utils individually as we dont use gnome
|
#we need to install gnome and kde utils individually as we dont use gnome
|
||||||
gnome-calculator
|
gnome-calculator
|
||||||
snapshot
|
snapshot
|
||||||
|
|||||||
@@ -18,7 +18,8 @@ imports = [
|
|||||||
../../modules/home-manager/neovim.nix # dont use nixvim. broken
|
../../modules/home-manager/neovim.nix # dont use nixvim. broken
|
||||||
../../modules/home-manager/rclone.nix
|
../../modules/home-manager/rclone.nix
|
||||||
../../modules/home-manager/waybar.nix
|
../../modules/home-manager/waybar.nix
|
||||||
../../modules/home-manager/oh-my-posh # zsh customizer
|
#../../modules/home-manager/oh-my-posh.nix # zsh customizer
|
||||||
|
../../modules/home-manager/oh-my-zsh.nix # another zsh customizer
|
||||||
];
|
];
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -6,5 +6,4 @@
|
|||||||
enableZshIntegration = true;
|
enableZshIntegration = true;
|
||||||
useTheme = "gruvbox";
|
useTheme = "gruvbox";
|
||||||
};
|
};
|
||||||
};
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -0,0 +1,14 @@
|
|||||||
|
{ config, pkgs, ... }:
|
||||||
|
|
||||||
|
{
|
||||||
|
programs.zsh.oh-my-zsh = {
|
||||||
|
enable = true;
|
||||||
|
theme = "jonathan";
|
||||||
|
plugins = [
|
||||||
|
"aliases"
|
||||||
|
"alias-finder"
|
||||||
|
"colored-man-pages"
|
||||||
|
"colorize"
|
||||||
|
];
|
||||||
|
};
|
||||||
|
}
|
||||||
@@ -4,7 +4,18 @@
|
|||||||
programs.zsh = {
|
programs.zsh = {
|
||||||
enable = true;
|
enable = true;
|
||||||
autosuggestion.enable = true;
|
autosuggestion.enable = true;
|
||||||
initContent = "fastfetch\n";
|
initContent = ''
|
||||||
|
# Safe cat that uses colorize plugin ccat
|
||||||
|
custom-cat() {
|
||||||
|
if [[ -t 1 ]]; then
|
||||||
|
ccat "$@"
|
||||||
|
else
|
||||||
|
command cat "$@"
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
|
fastfetch\n''
|
||||||
|
;
|
||||||
shellAliases = {
|
shellAliases = {
|
||||||
".." = "z ..";
|
".." = "z ..";
|
||||||
grep = "rg";
|
grep = "rg";
|
||||||
@@ -12,6 +23,7 @@
|
|||||||
la = "ls -A";
|
la = "ls -A";
|
||||||
l = "ls -CF";
|
l = "ls -CF";
|
||||||
ls = "ls -hA -s --color";
|
ls = "ls -hA -s --color";
|
||||||
};
|
cat = "custom-cat";
|
||||||
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user