feat: move around and enable user profiles, create wtf and starship user proifles

This commit is contained in:
dusk 2021-05-07 01:02:40 +03:00
parent eb75598fca
commit 5dc2c916f0
Signed by: dusk
GPG Key ID: 1D8F8FAF2294D6EA
4 changed files with 35 additions and 56 deletions

View File

@ -527,31 +527,6 @@ in
''; '';
}; };
git = { git = {
enable = true;
aliases = {
a = "add";
b = "branch";
c = "commit";
d = "diff";
l = "log";
s = "status";
co = "checkout";
dc = "diff --cached";
qc = "commit -am";
pl = "pull";
ps = "push";
rb = "rebase";
rs = "restore";
rv = "revert";
ss = "stash";
rst = "reset";
rss = "restore --staged";
ssp = "stash pop";
ssl = "stash list";
ssd = "stash drop";
};
extraConfig = { pull.rebase = true; };
lfs.enable = true;
signing = { signing = {
key = "E1C119F91F4CAE53E8445CAFBB57FCE7E35984F6"; key = "E1C119F91F4CAE53E8445CAFBB57FCE7E35984F6";
signByDefault = true; signByDefault = true;
@ -632,24 +607,6 @@ in
''; '';
}; };
}; };
starship = {
enable = true;
settings = {
add_newline = false;
character = {
success_symbol = "[>](bold green)";
error_symbol = "[>](bold red)";
};
directory = {
truncation_length = 2;
truncate_to_repo = false;
};
};
};
direnv = {
enable = true;
enableNixDirenvIntegration = true;
};
fzf.enable = true; fzf.enable = true;
rofi = rofi =
let let

View File

@ -1,33 +1,36 @@
{ {
programs.git = { programs.git = {
enable = true; enable = true;
extraConfig = { pull.rebase = true; };
extraConfig = { lfs.enable = true;
pull.rebase = false;
};
aliases = { aliases = {
a = "add -p"; a = "add -p";
co = "checkout"; co = "checkout";
cob = "checkout -b"; cob = "checkout -b";
f = "fetch -p"; f = "fetch -p";
c = "commit"; c = "commit";
p = "push"; ps = "push";
pl = "pull";
rb = "rebase";
ba = "branch -a"; ba = "branch -a";
bd = "branch -d"; bd = "branch -d";
bD = "branch -D"; bD = "branch -D";
d = "diff"; d = "diff";
dc = "diff --cached"; dc = "diff --cached";
ds = "diff --staged"; ds = "diff --staged";
r = "restore"; rs = "restore";
rs = "restore --staged"; rss = "restore --staged";
st = "status -sb"; s = "status -sb";
ss = "stash";
ssp = "stash pop";
ssl = "stash list";
ssd = "stash drop";
# reset # reset
soft = "reset --soft"; rsoft = "reset --soft";
hard = "reset --hard"; rhard = "reset --hard";
s1ft = "soft HEAD~1"; rs1ft = "soft HEAD~1";
h1rd = "hard HEAD~1"; rh1rd = "hard HEAD~1";
# logging # logging
lg = lg =

View File

@ -0,0 +1,16 @@
{ ... }: {
programs.starship = {
enable = true;
settings = {
add_newline = false;
character = {
success_symbol = "[>](bold green)";
error_symbol = "[>](bold red)";
};
directory = {
truncation_length = 2;
truncate_to_repo = false;
};
};
};
}

View File

@ -0,0 +1,3 @@
{ pkgs, ... }: {
home.packages = [ pkgs.wtf ];
}