config: cd adjustments

This commit is contained in:
xerus2000 2020-12-14 11:50:24 +01:00
parent 436b637bf6
commit 3ac77c3e6f
2 changed files with 6 additions and 1 deletions

View File

@ -96,6 +96,7 @@
(setq org-image-actual-width nil)
; Exporting - https://orgmode.org/manual/Export-Settings.html
(setq org-latex-pdf-export "latexmk -outdir=/tmp/latexmk -f -pdf %F; mv %f /tmp/latexmk; mv /tmp/latexmk/%b.pdf %o")
(setq org-latex-packages-alist '(("margin=3cm" "geometry") ("avoid-all" "widows-and-orphans")))
(setq org-export-with-sub-superscripts nil)
(setq org-export-with-tags nil)

View File

@ -75,7 +75,11 @@ edbin() {
}
alias l="ls -l --almost-all --human-readable --group-directories-first --file-type"
cd() { builtin cd "$@" && command ls --file-type --group-directories-first --color=always --format=vertical -w $COLUMNS | head -3 }
cd() {
test ! -e "$1" && test $# -eq 1 && cd $DATA/$1* && return
builtin cd "$1" &&
command ls --file-type --group-directories-first --color=always --format=vertical -w $COLUMNS | head -3
}
swap() {
mv -n $1 $1.tmp