config: fix aliases, notably custom cd
This commit is contained in:
parent
1a9fa40da7
commit
8273f718a1
|
@ -172,6 +172,7 @@
|
|||
"\\" 'org-ctrl-c-ctrl-c
|
||||
:localleader
|
||||
"j" 'org-insert-heading
|
||||
"k" 'org-latex-export-to-pdf
|
||||
"t" 'org-todo-or-insert
|
||||
"e" 'org-export-dispatch-custom-date
|
||||
"E" 'org-export-repeat
|
||||
|
|
|
@ -34,7 +34,7 @@
|
|||
hl-todo ; highlight TODO/FIXME/NOTE/DEPRECATED/HACK/REVIEW
|
||||
;;hydra
|
||||
indent-guides ; highlighted indent columns
|
||||
ligatures ; ligatures and symbols to make your code pretty again
|
||||
;;ligatures ; ligatures and symbols to make your code pretty again
|
||||
minimap ; show a map of the code on the side
|
||||
modeline ; snazzy, Atom-inspired modeline, plus API
|
||||
nav-flash ; blink cursor line after big motions
|
||||
|
|
|
@ -88,7 +88,8 @@ edbin() {
|
|||
|
||||
alias l="ls -l --almost-all --human-readable --group-directories-first --file-type"
|
||||
cd() {
|
||||
test ! -e "$1" && test $# -eq 1 && cd $DATA/$1* && return
|
||||
test ! -d "$1" && test $# -eq 1 && dir=$(find "$DATA" -maxdepth 2 -type d -name "$1*" | head -1) &&
|
||||
test -n "$dir" && cd "$dir" && return
|
||||
builtin cd $1 &&
|
||||
command ls --file-type --group-directories-first --color=always --format=vertical -w $COLUMNS | head -3
|
||||
}
|
||||
|
@ -130,7 +131,7 @@ browse-unsafe() {
|
|||
sudo chattr -i /etc/resolv.conf &&
|
||||
sudo mv /etc/resolv.conf /etc/resolv.conf.bak &&
|
||||
sudo systemctl enable --now systemd-resolved &&
|
||||
sleep 1
|
||||
sleep 100
|
||||
browse-safe
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue