nix/common/dotfiles/bash.nix

45 lines
1 KiB
Nix
Raw Normal View History

2023-07-01 12:12:43 +02:00
{ config, pkgs, ... }: {
# Configure BASH exports
2023-07-01 12:37:34 +02:00
programs.powerline-go.enable = true;
2023-07-01 12:12:43 +02:00
programs = {
bash = {
2023-07-01 12:39:48 +02:00
enable = true;
2023-07-01 12:12:43 +02:00
enableCompletion = true;
shellAliases = {
2023-07-01 13:14:29 +02:00
# docker
2023-07-01 12:12:43 +02:00
d = "docker";
dc = "docker-compose";
de = "docker exec -it";
2023-07-01 13:14:29 +02:00
# bash / system
2023-07-01 12:12:43 +02:00
cp = "rsync -avr";
2023-07-01 13:14:29 +02:00
ll = "ls -lah";
rm = "rm -i";
# git
2023-07-01 12:12:43 +02:00
g = "git";
ga = "git add -A";
gb = "git branch";
gc = "git commit";
gca = "git commit -a";
gco = "git checkout";
gd = "git diff";
gp = "git pull --prune";
gpu = "git push origin HEAD";
gs = "git status -sb";
2023-07-01 13:14:29 +02:00
# time / date
2023-07-01 12:12:43 +02:00
tdate = "date +%Y.%m.%d..%H.%M";
ttime = "date +%H.%M";
2023-07-01 13:14:29 +02:00
ddate = "date +%Y.%m.%d";
dday = "date +%A";
2023-07-01 13:42:01 +02:00
2023-07-01 13:14:29 +02:00
# nixos-rebuild
2023-07-01 12:12:43 +02:00
nr = "nixos-rebuild";
2023-07-01 13:15:02 +02:00
nrs = "nixos-rebuild switch";
2023-07-01 13:42:01 +02:00
nrt = "nixos-rebuild test";
nrb = "nixos-rebuild build";
2023-07-01 12:12:43 +02:00
};
};
};
}