home/zsh: add full /nix/store path to aliases and shell script executables

This commit is contained in:
Asmir A 2025-02-04 15:19:12 +01:00
parent cc95668f6d
commit e4b6972c36
Signed by: asmir
GPG Key ID: 020C42B7A9ABA3E2
2 changed files with 5 additions and 4 deletions

View File

@ -155,6 +155,7 @@
}
];
};
magpie = nixpkgs.lib.nixosSystem rec {
system = "aarch64-linux";
modules = [

View File

@ -1,4 +1,4 @@
{ pkgs, ... }:
{ pkgs, lib, ... }:
{
programs.z-lua = {
enableAliases = true;
@ -11,13 +11,13 @@
defaultKeymap = "viins";
shellAliases = {
cfind = "cscope -C -R -L1";
cfind = "${pkgs.cscope}/bin/cscope -C -R -L1";
chmod = "chmod -v";
chown = "chown -v";
cp = "cp -v";
rm = "rm -v";
ip = "ip --color=auto";
f = "''$(pay-respects zsh)";
f = "''$(${lib.getExe pkgs.pay-respects} zsh)";
};
history = {
@ -108,7 +108,7 @@
zstyle ':completion:*' matcher-list 'm:{a-z}={A-Za-z}'
if [[ -n "$PS1" ]] && [[ -z "$TMUX" ]] && [[ -n "$SSH_CONNECTION" ]]; then
TMUX_EXE="${pkgs.tmux}/bin/tmux"
TMUX_EXE="${lib.getExe pkgs.tmux}"
systemd-run --scope --user $TMUX_EXE attach-session -t $USER || systemd-run --scope --user $TMUX_EXE new-session -s $USER
fi