config/shell: make u more versatile
This commit is contained in:
parent
ce50772318
commit
30fa212e43
|
@ -430,8 +430,8 @@ Version 2019-11-04 2021-02-16"
|
||||||
(require 'org-roam-protocol)
|
(require 'org-roam-protocol)
|
||||||
|
|
||||||
(setq org-roam-db-update-on-save nil
|
(setq org-roam-db-update-on-save nil
|
||||||
org-roam-extract-new-file-path "${slug}.org")
|
org-roam-extract-new-file-path "${slug}.org"
|
||||||
;+org-roam-open-buffer-on-find-file nil)
|
+org-roam-auto-backlinks-buffer t)
|
||||||
(add-hook 'org-capture-after-finalize-hook (lambda () (if (org-roam-file-p) (org-roam-db-sync))))
|
(add-hook 'org-capture-after-finalize-hook (lambda () (if (org-roam-file-p) (org-roam-db-sync))))
|
||||||
|
|
||||||
(setq my/org-roam-capture-props (concat ":properties:\n:id: ${slug}\n:created: %<" time-stamp-format ">\n:modified: <>\n:end:\n"))
|
(setq my/org-roam-capture-props (concat ":properties:\n:id: ${slug}\n:created: %<" time-stamp-format ">\n:modified: <>\n:end:\n"))
|
||||||
|
|
|
@ -8,7 +8,7 @@ then
|
||||||
alias -g X1="| xargs -d '\n' -n 1"
|
alias -g X1="| xargs -d '\n' -n 1"
|
||||||
alias -g XC="| xclip -selection clipboard"
|
alias -g XC="| xclip -selection clipboard"
|
||||||
alias -g L="--color=always | ${PAGER:-less}"
|
alias -g L="--color=always | ${PAGER:-less}"
|
||||||
alias -g T=" | tree --color --fromfile . | less -F"
|
alias -g T=" | tree -C --fromfile . | less -F"
|
||||||
|
|
||||||
# Edit zsh completion
|
# Edit zsh completion
|
||||||
edcomp() {
|
edcomp() {
|
||||||
|
@ -213,9 +213,13 @@ u() {
|
||||||
which pacman-mirrors >/dev/null &&
|
which pacman-mirrors >/dev/null &&
|
||||||
sudo pacman-mirrors --geoip &&
|
sudo pacman-mirrors --geoip &&
|
||||||
sudo pacman -Syy
|
sudo pacman -Syy
|
||||||
|
if which topgrade >/dev/null
|
||||||
|
then
|
||||||
topgrade &&
|
topgrade &&
|
||||||
topgrade --only emacs --yes
|
topgrade --only emacs --yes
|
||||||
# TODO autodetect failure in emacs and rebuild completely
|
# TODO autodetect failure in emacs and rebuild completely
|
||||||
|
else yadm l && sudo apt update && sudo apt upgrade
|
||||||
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
# Networking
|
# Networking
|
||||||
|
|
Loading…
Reference in New Issue