order in zshrc to prevent ls alias overwrite
This commit is contained in:
parent
11173367e5
commit
9834d4f970
@ -10,6 +10,7 @@ let
|
||||
email = "olaf@xolx.nl";
|
||||
in
|
||||
{
|
||||
|
||||
# Shared shell configuration
|
||||
zsh = {
|
||||
enable = true;
|
||||
@ -18,13 +19,15 @@ in
|
||||
oh-my-zsh = {
|
||||
enable = true;
|
||||
plugins = [ ];
|
||||
# theme = "agnoster";
|
||||
theme = "ys";
|
||||
# theme = "fishy";
|
||||
# theme = "ys";
|
||||
theme = "mrtazz";
|
||||
};
|
||||
plugins = [
|
||||
# plugins = [ ];
|
||||
|
||||
];
|
||||
initExtraFirst = ''
|
||||
initContent =
|
||||
let
|
||||
zshConfigEarlyInit = lib.mkOrder 500 ''
|
||||
if [[ -f /nix/var/nix/profiles/default/etc/profile.d/nix-daemon.sh ]]; then
|
||||
. /nix/var/nix/profiles/default/etc/profile.d/nix-daemon.sh
|
||||
. /nix/var/nix/profiles/default/etc/profile.d/nix.sh
|
||||
@ -62,11 +65,21 @@ in
|
||||
# Use difftastic, syntax-aware diffing
|
||||
alias diff=difft
|
||||
|
||||
# Always color ls and group directories
|
||||
alias ls='ls --color=auto'
|
||||
|
||||
|
||||
|
||||
'';
|
||||
zshConfigLastInit = lib.mkOrder 1500 ''
|
||||
# Always color ls and group directories
|
||||
alias ls='ls --color=auto'
|
||||
|
||||
'';
|
||||
in
|
||||
lib.mkMerge [
|
||||
zshConfigEarlyInit
|
||||
zshConfigLastInit
|
||||
];
|
||||
|
||||
};
|
||||
|
||||
git = {
|
||||
|
Loading…
x
Reference in New Issue
Block a user