cli: Move shellAlias to environment config

This commit is contained in:
Alexander Kobjolke 2023-07-02 22:22:12 +02:00
parent c34946321f
commit 737d5a5877

View file

@ -58,23 +58,16 @@ in {
plantuml plantuml
gnuplot gnuplot
# pass
pandoc pandoc
hledger hledger
hledger-web hledger-web
#hledger-iadd
hledger-ui hledger-ui
#smos
#haskellPackages.patat # terminal based presentations using pandoc
nix-prefetch-git nix-prefetch-git
]; ];
home.extraOutputsToInstall = [ "doc" "info" "devdoc" ]; home.extraOutputsToInstall = [ "doc" "info" "devdoc" ];
xdg.enable = true; xdg.enable = true;
# xdg.configFile = {
# "emacs".source = ./emacs.d;
# };
xdg.configFile.tmux = { xdg.configFile.tmux = {
target = "tmux/tmux.conf"; target = "tmux/tmux.conf";
@ -98,18 +91,18 @@ in {
''; '';
}; };
environment.shellAliases = {
e = "emacsclient -c $@";
ls = "exa $@";
t = "exa -T $@";
};
programs = { programs = {
bash = { enable = true; }; bash = { enable = true; };
zsh = { zsh = {
enable = true; enable = true;
enableAutosuggestions = true; enableAutosuggestions = true;
# enableSyntaxHighlighting = true;
shellAliases = {
e = "emacsclient -c $@";
ls = "exa $@";
t = "exa -T $@";
};
oh-my-zsh = { oh-my-zsh = {
enable = true; enable = true;
plugins = [ "git" "fzf" "fd" "z" ]; plugins = [ "git" "fzf" "fd" "z" ];
@ -163,7 +156,6 @@ in {
password-store = { password-store = {
enable = true; enable = true;
# package = pkgs.pass.withExtensions (exts: [ exts.pass-otp ]);
package = pkgs.gopass; package = pkgs.gopass;
settings = { PASSWORD_STORE_DIR = "$HOME/.local/share/password-store"; }; settings = { PASSWORD_STORE_DIR = "$HOME/.local/share/password-store"; };
}; };