Skip to content

Commit

Permalink
refactor(modules): point fish.shellAliases to bin files instead of …
Browse files Browse the repository at this point in the history
…PATH
  • Loading branch information
zakuciael committed Sep 15, 2024
1 parent 0266f69 commit f474bcc
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion modules/desktop/apps.nix
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ in {
programs.noisetorch.enable = true;

home-manager.users.${username} = {
programs.fish.shellAliases.open = "xdg-open";
programs.fish.shellAliases.open = "${getBin pkgs.xdg-utils}/bin/xdg-open";
home.packages = with pkgs; [
# Nix
inputs.nil.default
Expand Down
10 changes: 5 additions & 5 deletions modules/shell/bat.nix
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,11 @@ in {
set -x LESS "$LESS -R";
set -x BATPIPE "color";
'';
shellAliases = {
cat = "bat";
watch = "batwatch";
rcat = "command cat";
man = "batman";
shellAliases = with pkgs.bat-extras; {
cat = "${getExe config.home-manager.users.${username}.programs.bat.package}";
watch = "${getExe batwatch}";
rcat = "command ${getBin pkgs.toybox}/bin/cat";
man = "${getExe batman}";
};
};
bat = {
Expand Down
6 changes: 3 additions & 3 deletions modules/shell/tools.nix
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,9 @@ in {

programs = {
fish = {
shellAliases = {
lzd = "lazydocker";
tree = "tre";
shellAliases = with pkgs; {
lzd = "${getExe lazydocker}";
tree = "${getExe tre-command}";

# On-demand tools
dig = "nix run nixpkgs#dogdns"; # A command-line DNS client.
Expand Down

0 comments on commit f474bcc

Please sign in to comment.