nixos-config/home/shellcommon.nix
2022-12-03 13:05:37 -05:00

22 lines
484 B
Nix

{ pkgs, ... }:
let
shellAliases = {
e = "nvim";
ee = "nvim \"$(fzf)\"";
g = "${pkgs.git}/bin/git";
lg = "lazygit";
ls = "${pkgs.exa}/bin/exa";
l = "ls";
ll = "ls -l";
lt = "ls --tree";
# Project tmux.
pux = "sh -c \"tmux -S $(pwd).tmux attach\"";
# TODO: Gotta specify ~/.todo/config in Nix
t = "${pkgs.todo-txt-cli}/bin/todo.sh";
};
in
{
programs.bash = { inherit shellAliases; };
programs.zsh = { inherit shellAliases; };
}