adds aliases and functions
This commit is contained in:
parent
9dde3e8806
commit
7498454bbd
2 changed files with 9 additions and 2 deletions
|
@ -3,6 +3,7 @@
|
||||||
{
|
{
|
||||||
environment.pathsToLink = [ "/share/zsh" ];
|
environment.pathsToLink = [ "/share/zsh" ];
|
||||||
home-manager.users.moritz = {
|
home-manager.users.moritz = {
|
||||||
|
shell = pkgs.zsh;
|
||||||
home.packages = with pkgs; [ du-dust ];
|
home.packages = with pkgs; [ du-dust ];
|
||||||
programs = {
|
programs = {
|
||||||
zsh = {
|
zsh = {
|
||||||
|
@ -14,11 +15,18 @@
|
||||||
ls = "exa -lh";
|
ls = "exa -lh";
|
||||||
cat = "bat";
|
cat = "bat";
|
||||||
feh = "feh --auto-zoom --scale-down";
|
feh = "feh --auto-zoom --scale-down";
|
||||||
|
|
||||||
|
us = "systemctl --user";
|
||||||
|
rs = "sudo systemctl";
|
||||||
};
|
};
|
||||||
enableSyntaxHighlighting = true;
|
enableSyntaxHighlighting = true;
|
||||||
enableAutosuggestions = true;
|
enableAutosuggestions = true;
|
||||||
enableCompletion = true;
|
enableCompletion = true;
|
||||||
# initExtra = ''export DIRENV_LOG_FORMAT=""'';
|
initExtra = ''
|
||||||
|
function nix-which() {
|
||||||
|
readlink -f $(which $1)
|
||||||
|
}
|
||||||
|
'';
|
||||||
plugins = [{
|
plugins = [{
|
||||||
name = "forgit";
|
name = "forgit";
|
||||||
src = inputs.forgit-git;
|
src = inputs.forgit-git;
|
||||||
|
|
|
@ -5,7 +5,6 @@
|
||||||
|
|
||||||
# USERS
|
# USERS
|
||||||
users.users.moritz = {
|
users.users.moritz = {
|
||||||
shell = pkgs.zsh;
|
|
||||||
isNormalUser = true;
|
isNormalUser = true;
|
||||||
home = "/home/moritz";
|
home = "/home/moritz";
|
||||||
extraGroups =
|
extraGroups =
|
||||||
|
|
Loading…
Reference in a new issue