test
This commit is contained in:
parent
66cd3121bc
commit
26fd0bcd3c
2 changed files with 35 additions and 32 deletions
35
common/dotfiles/bash.nix
Normal file
35
common/dotfiles/bash.nix
Normal file
|
@ -0,0 +1,35 @@
|
||||||
|
{ config, pkgs, ... }: {
|
||||||
|
environment.systemPackages = with pkgs; [ powerline-go ];
|
||||||
|
# Configure BASH exports
|
||||||
|
programs = {
|
||||||
|
bash = {
|
||||||
|
enableCompletion = true;
|
||||||
|
enableLsColors = true;
|
||||||
|
shellAliases = {
|
||||||
|
d = "docker";
|
||||||
|
dc = "docker-compose";
|
||||||
|
de = "docker exec -it";
|
||||||
|
ddate = "date +%Y.%m.%d";
|
||||||
|
dday = "date +%A";
|
||||||
|
cp = "rsync -avr";
|
||||||
|
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";
|
||||||
|
hs = "home-manager switch";
|
||||||
|
ll = "ls -lah";
|
||||||
|
rm = "rm -i";
|
||||||
|
tdate = "date +%Y.%m.%d..%H.%M";
|
||||||
|
ttime = "date +%H.%M";
|
||||||
|
nr = "nixos-rebuild";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
}
|
|
@ -150,38 +150,6 @@
|
||||||
options = "--delete-older-than 7d";
|
options = "--delete-older-than 7d";
|
||||||
};
|
};
|
||||||
|
|
||||||
# Configure BASH exports
|
|
||||||
programs = {
|
|
||||||
bash = {
|
|
||||||
enableCompletion = true;
|
|
||||||
enableLsColors = true;
|
|
||||||
shellAliases = {
|
|
||||||
d = "docker";
|
|
||||||
dc = "docker-compose";
|
|
||||||
de = "docker exec -it";
|
|
||||||
ddate = "date +%Y.%m.%d";
|
|
||||||
dday = "date +%A";
|
|
||||||
cp = "rsync -avr";
|
|
||||||
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";
|
|
||||||
hs = "home-manager switch";
|
|
||||||
ll = "ls -lah";
|
|
||||||
rm = "rm -i";
|
|
||||||
tdate = "date +%Y.%m.%d..%H.%M";
|
|
||||||
ttime = "date +%H.%M";
|
|
||||||
nr = "nixos-rebuild";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
# This value determines the NixOS release from which the default
|
# This value determines the NixOS release from which the default
|
||||||
# settings for stateful data, like file locations and database versions
|
# settings for stateful data, like file locations and database versions
|
||||||
# on your system were taken. It‘s perfectly fine and recommended to leave
|
# on your system were taken. It‘s perfectly fine and recommended to leave
|
||||||
|
|
Loading…
Reference in a new issue