Add a couple of small utilities and wire them up.
This commit is contained in:
parent
51ecdd42c2
commit
aa292f3a42
3 changed files with 17 additions and 4 deletions
|
@ -12,9 +12,10 @@ with lib;
|
||||||
};
|
};
|
||||||
|
|
||||||
environment.variables = mkIf (elem "etcvars" config.machine.conffiles) {
|
environment.variables = mkIf (elem "etcvars" config.machine.conffiles) {
|
||||||
NIXPKGS_ALLOW_UNFREE="1";
|
LC_CTYPE = "zh_CN.UTF-8";
|
||||||
WINEDLLOVERRIDES="winemenubuilder.exe=d";
|
MANPAGER = "sh -c 'col -bx | bat -l man -p'";
|
||||||
LC_CTYPE="zh_CN.UTF-8";
|
NIXPKGS_ALLOW_UNFREE = "1";
|
||||||
|
WINEDLLOVERRIDES = "winemenubuilder.exe=d";
|
||||||
# This breaks a lot of applications
|
# This breaks a lot of applications
|
||||||
# QT_SCALE_FACTOR="0.7";
|
# QT_SCALE_FACTOR="0.7";
|
||||||
};
|
};
|
||||||
|
|
|
@ -7,6 +7,17 @@ mkIf (elem "zsh" config.machine.conffiles) {
|
||||||
enable = true;
|
enable = true;
|
||||||
autosuggestions.enable = true;
|
autosuggestions.enable = true;
|
||||||
syntaxHighlighting.enable = true;
|
syntaxHighlighting.enable = true;
|
||||||
|
shellAliases = {
|
||||||
|
cat = ''bat --paging=never --theme="Solarized (dark)"'';
|
||||||
|
less = ''bat --paging=always --style=changes --color=always --theme="Solarized (dark)"'';
|
||||||
|
ls = "exa";
|
||||||
|
l = "exa -abgHhl@ --git --color=always --group-directories-first";
|
||||||
|
tree = "exa --tree --color=always";
|
||||||
|
};
|
||||||
|
shellInit = ''
|
||||||
|
function ll() { exa -abgHhl@ --git --color=always --group-directories-first $@ | bat --paging=always --style=changes --color=always --theme="Solarized (dark)" }
|
||||||
|
function lln() { exa -abgHhl@ --git --color=always --group-directories-first $@ | bat --paging=always --style=changes --color=always --theme="Solarized (dark)" -n}
|
||||||
|
'';
|
||||||
ohMyZsh = {
|
ohMyZsh = {
|
||||||
enable = true;
|
enable = true;
|
||||||
plugins = [ "cabal" "docker" "gitfast" "python" "pip" "sudo" "systemd" "man" ];
|
plugins = [ "cabal" "docker" "gitfast" "python" "pip" "sudo" "systemd" "man" ];
|
||||||
|
@ -14,4 +25,3 @@ mkIf (elem "zsh" config.machine.conffiles) {
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -8,6 +8,7 @@
|
||||||
cryptsetup
|
cryptsetup
|
||||||
dhcpcd
|
dhcpcd
|
||||||
dnsutils
|
dnsutils
|
||||||
|
exa
|
||||||
finger_bsd
|
finger_bsd
|
||||||
gitFull
|
gitFull
|
||||||
gnupg
|
gnupg
|
||||||
|
@ -44,6 +45,7 @@
|
||||||
ripgrep
|
ripgrep
|
||||||
rsync
|
rsync
|
||||||
sysvtools
|
sysvtools
|
||||||
|
tealdeer
|
||||||
telnet
|
telnet
|
||||||
traceroute
|
traceroute
|
||||||
tree
|
tree
|
||||||
|
|
Loading…
Reference in a new issue