|
@@ -68,6 +68,7 @@ alias m='eman'
|
|
|
|
|
|
# Gentoo specific
|
|
|
alias update='doas emerge-webrsync && doas emerge -auD @world && doas emerge -c'
|
|
|
+alias emerge-world='doas emerge -auD @world'
|
|
|
alias equ="equery u"
|
|
|
alias eqh="equery h"
|
|
|
|
|
@@ -155,26 +156,6 @@ watchts() {
|
|
|
}
|
|
|
|
|
|
#-------------------------------------------------------------------------------
|
|
|
-# Cleans up file names to make them more command-line friendly
|
|
|
-# Args: files to be renamed
|
|
|
-#-------------------------------------------------------------------------------
|
|
|
-
|
|
|
-norm_name() {
|
|
|
- for arg in "$@" ; do
|
|
|
- local name=$arg
|
|
|
- local ext=${name##*.}
|
|
|
- name=${name%.*}
|
|
|
- name=${name//[\{(\[]*[\})\]]/}
|
|
|
- name=${name@L}
|
|
|
- name=${name//[[:blank:]]/_}
|
|
|
- name+=.$ext
|
|
|
- name=${name/[[:blank:]]\./\.}
|
|
|
- name=${name/_\./\.}
|
|
|
- mv "$arg" "$name"
|
|
|
- done
|
|
|
-}
|
|
|
-
|
|
|
-#-------------------------------------------------------------------------------
|
|
|
# Open man pages as HTML inside elinks. Each page will be opened in its own tab.
|
|
|
#-------------------------------------------------------------------------------
|
|
|
|
|
@@ -338,7 +319,6 @@ _surround() {
|
|
|
READLINE_POINT=$point
|
|
|
}
|
|
|
|
|
|
-
|
|
|
# Bindings using the '_surround' function
|
|
|
bind -m vi-insert -x '"(":"_surround all \( \)"'
|
|
|
bind -m vi-insert -x '"\"":"_surround all \" \""'
|