diff options
author | mediocregopher <mediocregopher@gmail.com> | 2023-08-13 21:34:14 +0200 |
---|---|---|
committer | mediocregopher <mediocregopher@gmail.com> | 2023-08-13 21:35:17 +0200 |
commit | 1957081c122fe231eb6120192489dd979d214317 (patch) | |
tree | b8cd0812ec3c0452d54cb789ba938e6f0c0e8278 /base | |
parent | ef8da74f1ae38d9eceb68846fe9ef402c8e30fcf (diff) |
Update branch with all changes which could be brought in from private branches
For a while I was keeping a private branch where there were a lot of
non-public things included, and that became the de-facto branch while
this one lagged. This one is now up-to-date, all private stuff is dealt
with via config files which are not committed.
Diffstat (limited to 'base')
-rw-r--r-- | base/00-keyboard.conf | 6 | ||||
-rw-r--r-- | base/gitconfig | 14 | ||||
-rw-r--r-- | base/rm-keyfile.service | 9 |
3 files changed, 26 insertions, 3 deletions
diff --git a/base/00-keyboard.conf b/base/00-keyboard.conf new file mode 100644 index 0000000..04f72e6 --- /dev/null +++ b/base/00-keyboard.conf @@ -0,0 +1,6 @@ +Section "InputClass" + Identifier "system-keyboard" + MatchIsKeyboard "on" + Option "XkbLayout" "us" + Option "XkbOptions" "caps:swapescape" +EndSection diff --git a/base/gitconfig b/base/gitconfig index 2d4a1ea..90bcbf8 100644 --- a/base/gitconfig +++ b/base/gitconfig @@ -1,7 +1,14 @@ +[include] + path = custom + [push] default = simple [alias] + # main-branch outputs 'main' if there is a main branch, otherwise it outputs + # 'master' + main-branch = "!if git rev-parse --verify main 2>1 >/dev/null; then echo 'main'; else echo 'master'; fi" + #Shows diff in log ll = log --stat --abbrev-commit @@ -15,15 +22,16 @@ lug = log --color --graph --date=short --pretty=format:'%Cgreen%cd (%cr)%Creset %C(bold blue)%an%Creset %Cred%h%Creset -%C(yellow)%d%Creset %s' --abbrev-commit purr = pull --rebase chk = checkout - from = !git fetch origin master && git rebase -i origin/master + from = !git fetch origin "$(git main-branch)" && git rebase -i origin/"$(git main-branch)" # print local branches and their last commit times blanch = for-each-ref --sort=authordate --format '%(HEAD)%(align:left,40)%(refname:short)%(end) | %(align:left,20)%(authordate:iso)%(end) | %(subject)' refs/heads - # checkout master and delete previously checked out branch - close = !git checkout master && git branch -D @{-1} + # checkout master/main and delete previously checked out branch + close = !git checkout "$(git main-branch)" && git branch -D @{-1} [color] branch = auto diff = auto status = auto + diff --git a/base/rm-keyfile.service b/base/rm-keyfile.service new file mode 100644 index 0000000..8d95fa1 --- /dev/null +++ b/base/rm-keyfile.service @@ -0,0 +1,9 @@ +[Unit] +Description=rm keyfile + +[Service] +Type=oneshot +ExecStart=/bin/sh -c 'rm /boot/keyfile || true' + +[Install] +WantedBy=multi-user.target |