config: clean up aliases & remove mdoh
This commit is contained in:
parent
79c92ec6cb
commit
b1de4bcbaa
|
@ -107,6 +107,7 @@
|
|||
;; Org startup - https://orgmode.org/manual/In_002dbuffer-Settings.html
|
||||
(setq org-startup-folded 'show2levels)
|
||||
(setq org-startup-with-inline-images t)
|
||||
(setq org-display-remote-inline-images 'cache)
|
||||
|
||||
;; Fix xdg-open & open PDF in Emacs - https://depp.brause.cc/dotemacs/#orgd97f08c
|
||||
(setq org-file-apps '((remote . emacs)
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
[alias]
|
||||
journal = !git cme "notes/journal:" -- $(git root)/2-standards/notes/journal
|
||||
note = !git cme "notes:" -- $(git root)/2-standards/notes
|
||||
write = !git cme "writings:" -- $(git root)/2-standards/writing
|
||||
write = !git cme "write:" -- $(git root)/2-standards/writing
|
||||
|
|
|
@ -120,7 +120,7 @@ alias lst='( last; last -f /var/log/wtmp.1 ) | grep -v "pts/" | tac | less +G'
|
|||
alias lar='last | tac'
|
||||
|
||||
# Listen to loopback of mic
|
||||
alias listen='pactl load-module module-loopback; read; pactl unload-module module-loopback'
|
||||
alias listen='pactl load-module module-loopback; echo "Press Enter to stop"; read; pactl unload-module module-loopback'
|
||||
|
||||
alias browse-safe='sudo systemctl disable --now systemd-resolved && sudo rm -f /etc/resolv.conf && echo "nameserver 185.228.168.10" | sudo tee /etc/resolv.conf && sudo chattr +i /etc/resolv.conf'
|
||||
alias browse-unsafe='sudo chattr -i /etc/resolv.conf && sudo mv /etc/resolv.conf /etc/resolv.conf.bak && sudo systemctl enable --now systemd-resolved && sleep 100 && browse-safe'
|
||||
|
@ -146,9 +146,11 @@ alias mdox="xclip -o -selection clipboard | mdo | xclip -filter"
|
|||
alias gdiff='git diff --word-diff=color --word-diff-regex=. --no-index'
|
||||
|
||||
alias sc='sudo systemctl'
|
||||
alias sce='sudo systemctl enable --now'
|
||||
scs() { sudo systemctl status "*$1*" }
|
||||
alias scu='systemctl --user'
|
||||
alias scrw='sudo systemctl restart display-manager'
|
||||
alias scue='systemctl --user enable --now'
|
||||
scus() { systemctl --user status "*$1*" }
|
||||
|
||||
alias jcl='sudo SYSTEMD_LESS=FRKi journalctl --boot --no-hostname -e'
|
||||
alias jc='jcl -u'
|
||||
|
|
|
@ -1,10 +0,0 @@
|
|||
#!/bin/sh
|
||||
# Transforms org to markdown using a simplified regex
|
||||
sed ':o; s/_\(\w[^_]*\w\)_/\/\1\//g;
|
||||
/^#\+ /{
|
||||
s/^#/*/; To;
|
||||
:b; s/^\(\**\)#/\1*/g; tb;
|
||||
n; s/^$//; To; D
|
||||
}' "$@"
|
||||
# echo "# one\n\n# two\n## under #two\n_hello under_two_\nnumber #1" | mdoh
|
||||
|
Loading…
Reference in New Issue