config: various cleanups
This commit is contained in:
parent
b329a94d42
commit
6b2cc865a6
|
@ -306,6 +306,7 @@ Version 2019-11-04 2021-02-16"
|
|||
:desc "Medium Priority" "pb" (lambda () (interactive) (org-priority "B"))
|
||||
:desc "High Priority" "pa" (lambda () (interactive) (org-priority "A"))
|
||||
:desc "Set ID property" "lI" (lambda () (interactive)
|
||||
;; Check out https://github.com/novoid/dot-emacs/blob/master/config.org#my-id-get-or-generate
|
||||
(org-set-property "ID"
|
||||
(let ((heading (org-get-heading t t t t)))
|
||||
(if heading (org-read-property-value "ID" nil (xf/slugify heading)) (file-name-sans-extension (file-name-nondirectory buffer-file-name)))
|
||||
|
|
|
@ -190,3 +190,5 @@
|
|||
path= "diffr"
|
||||
[includeIf "gitdir:yadm/repo.git"]
|
||||
path = "~/.config/yadm/gitconfig"
|
||||
[safe]
|
||||
directory = /opt/flutter
|
||||
|
|
|
@ -5,7 +5,7 @@ colors:
|
|||
title: blue
|
||||
default_hour: 0
|
||||
default_minute: 0
|
||||
editor: /home/janek/.local/bin/scripts/emacstty
|
||||
editor: /home/janek/.local/bin/scripts/emacstty +99999
|
||||
encrypt: false
|
||||
highlight: true
|
||||
indent_character: '|'
|
||||
|
|
|
@ -1,6 +1,5 @@
|
|||
[Added Associations]
|
||||
application/java-archive=org.kde.ark.desktop;
|
||||
application/rss+xml=nvim.desktop;
|
||||
application/x-java-archive=java-2.desktop;java.desktop;jconsole-java11-openjdk.desktop;
|
||||
application/x-ms-shortcut=firefox.desktop;
|
||||
application/x-mswinurl=firefox.desktop;
|
||||
|
@ -13,9 +12,8 @@ audio/x-wav=mpc.desktop;
|
|||
audio/aac=mpc.desktop;
|
||||
image/jpeg=org.kde.showfoto.desktop;
|
||||
image/png=org.kde.showfoto.desktop;
|
||||
inode/directory=org.kde.dolphin.desktop;vifm.desktop;
|
||||
text/html=firefox.desktop;
|
||||
text/plain=nvim.desktop;emacs.desktop;okularApplication_txt.desktop;
|
||||
text/plain=emacs.desktop;okularApplication_txt.desktop;
|
||||
x-scheme-handler/tg=telegram.desktop;
|
||||
|
||||
[Default Applications]
|
||||
|
@ -33,7 +31,6 @@ image/jpeg=org.kde.showfoto.desktop;
|
|||
image/png=org.kde.showfoto.desktop;
|
||||
inode/directory=org.kde.dolphin.desktop;
|
||||
text/html=firefox.desktop;
|
||||
text/plain=nvim.desktop;
|
||||
x-scheme-handler/discord-757737740241731714=discord-757737740241731714.desktop
|
||||
x-scheme-handler/etcher=balena-etcher-electron.desktop
|
||||
x-scheme-handler/ferdi=ferdi.desktop
|
||||
|
|
|
@ -75,6 +75,8 @@ highlight "c :: clean electron caches"
|
|||
|
||||
highlight "o :: optimize space extensively"
|
||||
if [[ $1 =~ "o" ]]; then
|
||||
sudo find $XDG_CACHE_HOME /var/cache /var/log /var/tmp -maxdepth 2 -atime +2 -exec rm -r {} +
|
||||
|
||||
if test -f "/var/log/apt/history.log"; then
|
||||
aptclean_cur=$(cat "/var/log/apt/history.log" | wc -l)
|
||||
test "$aptclean_cur" -gt "${aptclean_last:--1}" &&
|
||||
|
|
|
@ -1,10 +1,12 @@
|
|||
#!/bin/sh
|
||||
# Run parted with rlwrap
|
||||
# Manage partitions
|
||||
# TODO completion
|
||||
case "$1" in
|
||||
([a-z]) part=/dev/sd$1;;
|
||||
("") part= ;; # TODO unmount and run on current
|
||||
(/*) part=$1;;
|
||||
(*) part=/dev/$1;;
|
||||
esac
|
||||
shift
|
||||
fdisk $part "$@"
|
||||
test "$#" -eq 0 || shift
|
||||
cfdisk $part "$@" ||
|
||||
sudo cfdisk $part "$@"
|
||||
|
|
Loading…
Reference in New Issue