adds aliases and functions

This commit is contained in:
Moritz Böhme 2021-11-29 11:54:09 +01:00
parent 9dde3e8806
commit 7498454bbd
2 changed files with 9 additions and 2 deletions

View file

@ -3,6 +3,7 @@
{
environment.pathsToLink = [ "/share/zsh" ];
home-manager.users.moritz = {
shell = pkgs.zsh;
home.packages = with pkgs; [ du-dust ];
programs = {
zsh = {
@ -14,11 +15,18 @@
ls = "exa -lh";
cat = "bat";
feh = "feh --auto-zoom --scale-down";
us = "systemctl --user";
rs = "sudo systemctl";
};
enableSyntaxHighlighting = true;
enableAutosuggestions = true;
enableCompletion = true;
# initExtra = ''export DIRENV_LOG_FORMAT=""'';
initExtra = ''
function nix-which() {
readlink -f $(which $1)
}
'';
plugins = [{
name = "forgit";
src = inputs.forgit-git;

View file

@ -5,7 +5,6 @@
# USERS
users.users.moritz = {
shell = pkgs.zsh;
isNormalUser = true;
home = "/home/moritz";
extraGroups =