Compare commits
6 Commits
d794c6e108
...
92a0d923b4
Author | SHA1 | Date |
---|---|---|
Lucien Cartier-Tilet | 92a0d923b4 | |
Lucien Cartier-Tilet | acc226a21d | |
Lucien Cartier-Tilet | fc30673d4b | |
Lucien Cartier-Tilet | a060958a93 | |
Lucien Cartier-Tilet | 3d5b029ed9 | |
Lucien Cartier-Tilet | a52285b412 |
|
@ -1,103 +1,108 @@
|
|||
# -*- indent-tabs-mode: t; -*-
|
||||
|
||||
[user]
|
||||
email = lucien@phundrak.com
|
||||
name = Lucien Cartier-Tilet
|
||||
signingkey = BD7789E705CB8DCA
|
||||
|
||||
[core]
|
||||
editor = emacsclient -c -a emacs
|
||||
whitespace = fix,-indent-with-non-tab,trailing-space
|
||||
excludesfile = /home/phundrak/dotfiles/.gitignore_global
|
||||
[web]
|
||||
browser = firefox
|
||||
excludesfile = /home/phundrak/.gitignore_global
|
||||
|
||||
[pull]
|
||||
rebase = true
|
||||
|
||||
[init]
|
||||
defaultBranch = main
|
||||
|
||||
[color]
|
||||
ui = auto
|
||||
|
||||
[web]
|
||||
browser = firefox
|
||||
|
||||
[alias]
|
||||
a = add --all
|
||||
####
|
||||
aca = !git add --all && git commit --amend
|
||||
acan = !git add --all && git commit --amend --no-edit
|
||||
b = branch
|
||||
####
|
||||
bd = branch -d
|
||||
bdd = branch -D
|
||||
c = commit -S
|
||||
ca = commit -a
|
||||
cm = commit -m
|
||||
cam = commit -am
|
||||
####
|
||||
ca = commit -Sa
|
||||
can = commit -Sa --no-edit
|
||||
cm = commit -Sm
|
||||
cam = commit -Sam
|
||||
co = checkout
|
||||
cob = checkout -b
|
||||
####
|
||||
cod = checkout develop
|
||||
cl = clone
|
||||
cl1 = clone --depth=1
|
||||
####
|
||||
d = diff -w
|
||||
####
|
||||
l = log --oneline --graph --decorate
|
||||
####
|
||||
cl1 = clone --depth1
|
||||
f = fetch
|
||||
fp = fetch --prune
|
||||
ps = push
|
||||
psf = push -f
|
||||
psf = push --force-with-lease
|
||||
pso = push origin
|
||||
psfo = push -f origin
|
||||
psom = push origin master
|
||||
psfom = push -f origin master
|
||||
####
|
||||
psfo = push --force-with-lease origin
|
||||
pushall = !git remote | xargs -L1 git push
|
||||
psl = !git remote | xargs -L1 git push
|
||||
pullall = !git remote | xargs -L1 git pull
|
||||
pll = !git remote | xargs -L1 git pull
|
||||
pl = pull
|
||||
pb = pull --rebase
|
||||
####
|
||||
re = reset
|
||||
reh = reset --hard
|
||||
rehh = reset --hard HEAD
|
||||
####
|
||||
r = remote
|
||||
ra = remote add
|
||||
rr = remote rm
|
||||
###
|
||||
r = rebase
|
||||
ra = rebase --abort
|
||||
rc = rebase --continue
|
||||
rd = rebase develop
|
||||
ri = rebase -i
|
||||
rmf = rm -f
|
||||
rmrf = rm -r -f
|
||||
####
|
||||
s = status
|
||||
rmd = rm -r
|
||||
rmdf = rm -rf
|
||||
sm = submodule
|
||||
sms = submodule status
|
||||
sma = submodule add
|
||||
smu = submodule update
|
||||
smui = submodule update --init
|
||||
smuir = submodule update --init --recursive
|
||||
####
|
||||
staged = diff --cached
|
||||
####
|
||||
sc = stash clear
|
||||
sp = stash pop
|
||||
sw = stash show
|
||||
####
|
||||
pushall = !git remote | xargs -L1 git push
|
||||
psl = !git remote | xargs -L1 git push
|
||||
pullall = !git remote | xargs -L1 git pull
|
||||
pll = !git remote | xargs -L1 git pull
|
||||
####
|
||||
st = stash
|
||||
stc = stash clear
|
||||
stp = stash pop
|
||||
stw = stash show
|
||||
u = reset --
|
||||
unstage = reset --
|
||||
d = diff -w
|
||||
l = log --oneline --graph --decorate
|
||||
s = status
|
||||
staged = diff --cached
|
||||
upstream = !git push -u origin HEAD
|
||||
|
||||
[sendemail]
|
||||
smtpserver = mail.phundrak.com
|
||||
smtpuser = lucien@phundrak.com
|
||||
smtpencryption = tls
|
||||
smtpserverport = 587
|
||||
|
||||
[credentials "smtp://lucien@phundrak.com@mail.phundrak.com:587"]
|
||||
helper = "secret-tool lookup password email_lucien-phundrak-com"
|
||||
|
||||
[magithub]
|
||||
online = true
|
||||
[magithub "status"]
|
||||
includeStatusHeader = true
|
||||
includePullRequestsSection = true
|
||||
includeIssuesSection = true
|
||||
|
||||
[gpg]
|
||||
program = gpg2
|
||||
[mergetool.ediff]
|
||||
cmd = emacs --eval \" (progn (defun ediff-write-merge-buffer () (let ((file ediff-merge-store-file)) (set-buffer ediff-buffer-C) (write-region (point-min) (point-max) file) (message \\\"Merge buffer saved in: %s\\\" file) (set-buffer-modified-p nil) (sit-for 1))) (setq ediff-quit-hook 'kill-emacs ediff-quit-merge-hook 'ediff-write-merge-buffer) (ediff-merge-files-with-ancestor \\\"$LOCAL\\\" \\\"$REMOTE\\\" \\\"$BASE\\\" nil \\\"$MERGED\\\"))\"
|
||||
[merge]
|
||||
tool = ediff
|
||||
[github]
|
||||
user = phundrak
|
||||
[commit]
|
||||
gpgsign = true
|
||||
[pull]
|
||||
rebase = false
|
||||
[init]
|
||||
defaultBranch = main
|
||||
|
||||
[merge]
|
||||
tool = ediff
|
||||
|
||||
[mergetool.ediff]
|
||||
cmd = emacs --eval \" (progn (defun ediff-write-merge-buffer () (let ((file ediff-merge-store-file)) (set-buffer ediff-buffer-C) (write-region (point-min) (point-max) file) (message \\\"Merge buffer saved in: %s\\\" file) (set-buffer-modified-p nil) (sit-for 1))) (setq ediff-quit-hook 'kill-emacs ediff-quit-merge-hook 'ediff-write-merge-buffer) (ediff-merge-files-with-ancestor \\\"$LOCAL\\\" \\\"$REMOTE\\\" \\\"$BASE\\\" nil \\\"$MERGED\\\"))\"
|
||||
|
||||
[pager]
|
||||
diff = delta
|
||||
|
@ -105,9 +110,6 @@
|
|||
reflog = delta
|
||||
show = delta
|
||||
|
||||
[interactive]
|
||||
diffFilter = delta --color-only
|
||||
|
||||
[delta]
|
||||
features = side-by-side line-numbers decorations
|
||||
whitespace-error-style = 22 reverse
|
||||
|
@ -117,18 +119,20 @@
|
|||
file-style = bold yellow ul
|
||||
file-decoration-style = none
|
||||
|
||||
[credentials "smtp://lucien@phundrak.com@mail.phundrak.com:587"]
|
||||
helper = "pass Email/lucien@phundrak.com | head -n1 | tr -d '\n'"
|
||||
[filter "lfs"]
|
||||
required = true
|
||||
clean = git-lfs clean -- %f
|
||||
smudge = git-lfs smudge -- %f
|
||||
process = git-lfs filter-process
|
||||
[safe]
|
||||
directory = /opt/flutter
|
||||
[interactive]
|
||||
diffFilter = delta --color-only
|
||||
|
||||
[github]
|
||||
user = phundrak
|
||||
|
||||
[url "https://phundrak@github.com"]
|
||||
insteadOf = https://github.com
|
||||
|
||||
[url "https://phundrak@labs.phundrak.com"]
|
||||
insteadOf = https://labs.phundrak.com
|
||||
|
||||
[filter "lfs"]
|
||||
required = true
|
||||
clean = git-lfs clean -- %f
|
||||
smudge = git-lfs smudge -- %f
|
||||
process = git-lfs filter-process
|
||||
|
|
|
@ -464,6 +464,15 @@ case "y"
|
|||
xclip -sel clip -t "$TYPE" -i "$FILE"
|
||||
#+end_src
|
||||
|
||||
** Secure key generator
|
||||
:PROPERTIES:
|
||||
:HEADER-ARGS: :shebang "#!/usr/bin/env sh" :tangle ~/.local/bin/skg
|
||||
:CUSTOM_ID: cliutilitiesSecurekeygenerator-obfj0i20mvj0
|
||||
:END:
|
||||
#+begin_src bash
|
||||
tr -cd '[:alnum:]' < /dev/urandom | fold -w 64 | head -n 1 | tr -d '\n'
|
||||
#+end_src
|
||||
|
||||
** Starwars
|
||||
:PROPERTIES:
|
||||
:HEADER-ARGS: :shebang "#!/usr/bin/env fish" :mkdirp yes :tangle ~/.local/bin/starwars
|
||||
|
|
|
@ -4719,11 +4719,11 @@ the usage of the ~:ignore:~ tag in org.
|
|||
|
||||
*** Agenda
|
||||
:PROPERTIES:
|
||||
:header-args:emacs-lisp: :tangle no :exports code :results silent
|
||||
:header-args:emacs-lisp: :exports code :results silent
|
||||
:CUSTOM_ID: Packages-Configuration-Org-mode-Agenda8b55fl6184j0
|
||||
:END:
|
||||
#+name: org-agenda-files
|
||||
#+begin_src emacs-lisp
|
||||
#+begin_src emacs-lisp :tangle no
|
||||
(setq org-agenda-files (list "~/org/agenda" "~/org/notes.org"))
|
||||
#+end_src
|
||||
|
||||
|
@ -8368,7 +8368,8 @@ quickly find files across my filesystem.
|
|||
:config
|
||||
(setq ivy-quick-find-files-program 'fd
|
||||
ivy-quick-find-files-dirs-and-exts '(("~/org" . "org")
|
||||
("~/Documents/university" . "org"))))
|
||||
("~/Documents/university" . "org"))
|
||||
ivy-quick-find-files-fd-additional-options "-L"))
|
||||
#+end_src
|
||||
|
||||
*** Keycast
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
#+HTML_HEAD_EXTRA: <meta name="description" content="Phundrak's fish config" />
|
||||
#+HTML_HEAD_EXTRA: <meta property="og:title" content="Phundrak's fish config" />
|
||||
#+HTML_HEAD_EXTRA: <meta property="og:description" content="Description of the fish config file of Phundrak" />
|
||||
#+PROPERTY: header-args:fish :mkdirp :tangle ~/.config/fish/config.fish :exports code :noweb yes
|
||||
#+PROPERTY: header-args:fish :mkdirp yes :tangle ~/.config/fish/config.fish :exports code :noweb yes
|
||||
#+PROPERTY: header-args :exports code :tangle no
|
||||
|
||||
* Presentation
|
||||
|
|
|
@ -0,0 +1,294 @@
|
|||
# -*- indent-tabs-mode: t; -*-
|
||||
#+title: Git configuration
|
||||
#+setupfile: headers
|
||||
#+PROPERTY: header-args :exports code :tangle no
|
||||
#+PROPERTY: header-args:conf-unix :mkdirp yes :tangle ~/.config/git/config :exports code :noweb yes
|
||||
|
||||
* Basic configuration
|
||||
#+begin_src conf-unix
|
||||
# -*- indent-tabs-mode: t; -*-
|
||||
#+end_src
|
||||
|
||||
#+begin_src conf-unix
|
||||
[user]
|
||||
email = lucien@phundrak.com
|
||||
name = Lucien Cartier-Tilet
|
||||
signingkey = BD7789E705CB8DCA
|
||||
#+end_src
|
||||
|
||||
#+begin_src conf-unix
|
||||
[core]
|
||||
editor = emacsclient -c -a emacs
|
||||
whitespace = fix,-indent-with-non-tab,trailing-space
|
||||
excludesfile = /home/phundrak/.gitignore_global
|
||||
#+end_src
|
||||
|
||||
#+begin_src conf-unix
|
||||
[pull]
|
||||
rebase = true
|
||||
#+end_src
|
||||
|
||||
#+begin_src conf-unix
|
||||
[init]
|
||||
defaultBranch = main
|
||||
#+end_src
|
||||
|
||||
#+begin_src conf-unix
|
||||
[color]
|
||||
ui = auto
|
||||
#+end_src
|
||||
|
||||
#+begin_src conf-unix
|
||||
[web]
|
||||
browser = firefox
|
||||
#+end_src
|
||||
|
||||
* Aliases
|
||||
#+name: git-add-abbrev
|
||||
| abbreviation | equivalent |
|
||||
|--------------+------------------------------------------------|
|
||||
| =a= | =add --all= |
|
||||
| =aca= | =!git add --all && git commit --amend= |
|
||||
| =acan= | =!git add --all && git commit --amend --no-edit= |
|
||||
|
||||
#+name: abbrev-gen
|
||||
#+begin_src emacs-lisp :tangle no :exports none :var abbrevs=git-push-abbrev :wrap "src conf-unix :tangle no"
|
||||
(mapconcat (lambda (abbreviation)
|
||||
(replace-regexp-in-string
|
||||
(concat (regexp-quote "\\vert") (rx (? "{}")))
|
||||
"|"
|
||||
(concat "\t"
|
||||
(string-replace "=" "" (car abbreviation))
|
||||
" = "
|
||||
(string-replace "=" "" (cadr abbreviation)))))
|
||||
abbrevs
|
||||
"\n")
|
||||
#+end_src
|
||||
|
||||
#+RESULTS: abbrev-gen
|
||||
#+begin_src conf-unix :tangle no
|
||||
ps = push
|
||||
psf = push --force-with-lease
|
||||
pso = push origin
|
||||
psfo = push --force-with-lease origin
|
||||
pushall = !git remote | xargs -L1 git push
|
||||
psl = !git remote | xargs -L1 git push
|
||||
pullall = !git remote | xargs -L1 git pull
|
||||
pll = !git remote | xargs -L1 git pull
|
||||
#+end_src
|
||||
|
||||
#+name: git-branch-abbrev
|
||||
| abbreviation | equivalent |
|
||||
|--------------+------------|
|
||||
| =b= | =branch= |
|
||||
| =bd= | =branch -d= |
|
||||
| =bdd= | =branch -D= |
|
||||
|
||||
#+name: git-commit-abbrev
|
||||
| abbreviation | equivalent |
|
||||
|--------------+----------------------|
|
||||
| =c= | =commit -S= |
|
||||
| =ca= | =commit -Sa= |
|
||||
| =can= | =commit -Sa --no-edit= |
|
||||
| =cm= | =commit -Sm= |
|
||||
| =cam= | =commit -Sam= |
|
||||
|
||||
#+name: git-checkout-abbrev
|
||||
| abbreviation | equivalent |
|
||||
|--------------+------------------|
|
||||
| =co= | =checkout= |
|
||||
| =cob= | =checkout -b= |
|
||||
| =cod= | =checkout develop= |
|
||||
|
||||
#+name: git-clone-abbrev
|
||||
| abbreviation | equivalent |
|
||||
|--------------+-----------------|
|
||||
| =cl= | =clone= |
|
||||
| =cl1= | =clone --depth=1= |
|
||||
|
||||
#+name: git-fetch-abbrev
|
||||
| abbreviation | equivalent |
|
||||
|--------------+---------------|
|
||||
| =f= | =fetch= |
|
||||
| =fp= | =fetch --prune= |
|
||||
|
||||
#+name: git-push-abbrev
|
||||
| abbreviation | equivalent |
|
||||
|--------------+----------------------------------|
|
||||
| =ps= | =push= |
|
||||
| =psf= | =push --force-with-lease= |
|
||||
| =pso= | =push origin= |
|
||||
| =psfo= | =push --force-with-lease origin= |
|
||||
| =pushall= | =!git remote \vert{} xargs -L1 git push= |
|
||||
| =psl= | =!git remote \vert{} xargs -L1 git push= |
|
||||
| =pullall= | =!git remote \vert{} xargs -L1 git pull= |
|
||||
| =pll= | =!git remote \vert{} xargs -L1 git pull= |
|
||||
|
||||
#+name: git-pull-abbrev
|
||||
| abbreviation | equivalent |
|
||||
|--------------+---------------|
|
||||
| =pl= | =pull= |
|
||||
| =pb= | =pull --rebase= |
|
||||
|
||||
#+name: git-rebase-abbrev
|
||||
| abbreviation | equivalent |
|
||||
|--------------+-------------------|
|
||||
| =r= | =rebase= |
|
||||
| =ra= | =rebase --abort= |
|
||||
| =rc= | =rebase --continue= |
|
||||
| =rd= | =rebase develop= |
|
||||
| =ri= | =rebase -i= |
|
||||
|
||||
#+name: git-rm-abbrev
|
||||
| abbreviation | equivalent |
|
||||
|--------------+------------|
|
||||
| =rmf= | =rm -f= |
|
||||
| =rmd= | =rm -r= |
|
||||
| =rmdf= | =rm -rf= |
|
||||
|
||||
#+name: git-submodule-abbrev
|
||||
| abbreviation | equivalent |
|
||||
|--------------+-------------------------------------|
|
||||
| =sm= | =submodule= |
|
||||
| =sms= | =submodule status= |
|
||||
| =sma= | =submodule add= |
|
||||
| =smu= | =submodule update= |
|
||||
| =smui= | =submodule update --init= |
|
||||
| =smuir= | =submodule update --init --recursive= |
|
||||
|
||||
#+name: git-stash-abbrev
|
||||
| abbreviation | equivalent |
|
||||
|--------------+-------------|
|
||||
| =st= | =stash= |
|
||||
| =stc= | =stash clear= |
|
||||
| =stp= | =stash pop= |
|
||||
| =stw= | =stash show= |
|
||||
|
||||
#+name: git-unstage-abbrev
|
||||
| abbreviation | equivalent |
|
||||
|--------------+------------|
|
||||
| =u= | =reset --= |
|
||||
| =unstage= | =reset --= |
|
||||
|
||||
#+name: git-single-abbrev
|
||||
| abbreviation | equivalent |
|
||||
|--------------+----------------------------------|
|
||||
| =d= | =diff -w= |
|
||||
| =l= | =log --oneline --graph --decorate= |
|
||||
| =s= | =status= |
|
||||
| =staged= | =diff --cached= |
|
||||
| =upstream= | =!git push -u origin HEAD= |
|
||||
|
||||
#+RESULTS:
|
||||
: a = add --all
|
||||
: aca = !git add --all && git commit --amend
|
||||
: acan = !git add --all && git commit --amend --no-edit
|
||||
|
||||
#+begin_src conf-unix
|
||||
[alias]
|
||||
<<abbrev-gen(abbrevs=git-add-abbrev)>>
|
||||
<<abbrev-gen(abbrevs=git-branch-abbrev)>>
|
||||
<<abbrev-gen(abbrevs=git-commit-abbrev)>>
|
||||
<<abbrev-gen(abbrevs=git-checkout-abbrev)>>
|
||||
<<abbrev-gen(abbrevs=git-clone-abbrev)>>
|
||||
<<abbrev-gen(abbrevs=git-fetch-abbrev)>>
|
||||
<<abbrev-gen(abbrevs=git-push-abbrev)>>
|
||||
<<abbrev-gen(abbrevs=git-pull-abbrev)>>
|
||||
<<abbrev-gen(abbrevs=git-rebase-abbrev)>>
|
||||
<<abbrev-gen(abbrevs=git-rm-abbrev)>>
|
||||
<<abbrev-gen(abbrevs=git-submodule-abbrev)>>
|
||||
<<abbrev-gen(abbrevs=git-stash-abbrev)>>
|
||||
<<abbrev-gen(abbrevs=git-unstage-abbrev)>>
|
||||
<<abbrev-gen(abbrevs=git-single-abbrev)>>
|
||||
#+end_src
|
||||
|
||||
* Tools
|
||||
** Sendemail
|
||||
#+begin_src conf-unix
|
||||
[sendemail]
|
||||
smtpserver = mail.phundrak.com
|
||||
smtpuser = lucien@phundrak.com
|
||||
smtpencryption = tls
|
||||
smtpserverport = 587
|
||||
#+end_src
|
||||
|
||||
#+begin_src conf-unix
|
||||
[credentials "smtp://lucien@phundrak.com@mail.phundrak.com:587"]
|
||||
helper = "secret-tool lookup password email_lucien-phundrak-com"
|
||||
#+end_src
|
||||
|
||||
** Magit
|
||||
#+begin_src conf-unix
|
||||
[magithub]
|
||||
online = true
|
||||
[magithub "status"]
|
||||
includeStatusHeader = true
|
||||
includePullRequestsSection = true
|
||||
includeIssuesSection = true
|
||||
#+end_src
|
||||
|
||||
** GPG
|
||||
#+begin_src conf-unix
|
||||
[gpg]
|
||||
program = gpg2
|
||||
[commit]
|
||||
gpgsign = true
|
||||
#+end_src
|
||||
|
||||
** Merge
|
||||
#+begin_src conf-unix
|
||||
[merge]
|
||||
tool = ediff
|
||||
#+end_src
|
||||
|
||||
#+begin_src conf-unix
|
||||
[mergetool.ediff]
|
||||
cmd = emacs --eval \" (progn (defun ediff-write-merge-buffer () (let ((file ediff-merge-store-file)) (set-buffer ediff-buffer-C) (write-region (point-min) (point-max) file) (message \\\"Merge buffer saved in: %s\\\" file) (set-buffer-modified-p nil) (sit-for 1))) (setq ediff-quit-hook 'kill-emacs ediff-quit-merge-hook 'ediff-write-merge-buffer) (ediff-merge-files-with-ancestor \\\"$LOCAL\\\" \\\"$REMOTE\\\" \\\"$BASE\\\" nil \\\"$MERGED\\\"))\"
|
||||
#+end_src
|
||||
|
||||
** Pager
|
||||
#+begin_src conf-unix
|
||||
[pager]
|
||||
diff = delta
|
||||
log = delta
|
||||
reflog = delta
|
||||
show = delta
|
||||
#+end_src
|
||||
|
||||
** Delta
|
||||
#+begin_src conf-unix
|
||||
[delta]
|
||||
features = side-by-side line-numbers decorations
|
||||
whitespace-error-style = 22 reverse
|
||||
|
||||
[delta "decorations"]
|
||||
commit-decoration-style = bold yellow box ul
|
||||
file-style = bold yellow ul
|
||||
file-decoration-style = none
|
||||
|
||||
[interactive]
|
||||
diffFilter = delta --color-only
|
||||
#+end_src
|
||||
|
||||
** Git forges
|
||||
#+begin_src conf-unix
|
||||
[github]
|
||||
user = phundrak
|
||||
#+end_src
|
||||
|
||||
#+begin_src conf-unix
|
||||
[url "https://phundrak@github.com"]
|
||||
insteadOf = https://github.com
|
||||
|
||||
[url "https://phundrak@labs.phundrak.com"]
|
||||
insteadOf = https://labs.phundrak.com
|
||||
#+end_src
|
||||
|
||||
** LFS
|
||||
#+begin_src conf-unix
|
||||
[filter "lfs"]
|
||||
required = true
|
||||
clean = git-lfs clean -- %f
|
||||
smudge = git-lfs smudge -- %f
|
||||
process = git-lfs filter-process
|
||||
#+end_src
|
Loading…
Reference in New Issue