diff options
Diffstat (limited to '.config/shell')
-rw-r--r-- | .config/shell/aliasrc | 11 | ||||
-rw-r--r-- | .config/shell/bm-dirs | 16 | ||||
-rw-r--r-- | .config/shell/bm-files | 30 |
3 files changed, 29 insertions, 28 deletions
diff --git a/.config/shell/aliasrc b/.config/shell/aliasrc index 5c9826a..06b59da 100644 --- a/.config/shell/aliasrc +++ b/.config/shell/aliasrc @@ -10,8 +10,8 @@ alias l='ls -A' alias ll='ls -al' alias lr='ls -aR' # open -alias o='${OPENER:-xdg-open}' -alias e='${EDITOR:-vi}' +alias o="${OPENER:-xdg-open}" +alias e="${EDITOR:-vi}" alias se='sudoedit' alias lf='lfcd' alias sr='ff ~/.config ~/.local/bin ~/bin' @@ -26,11 +26,11 @@ ff() { find -H "$@" ! -wholename '*.git*' ! \( -type d -printf '%p/\n' , ! -type senv() { source "${XDG_DATA_HOME:-$HOME/.local/share}/virtualenvs/${1:-main}/bin/activate"; } sudoedit() { - if command -V vim >/dev/null; then + if command -V nvim >/dev/null; then + sudo nvim -u "${XDG_CONFIG_HOME:-$HOME/.config}/nvim/init.vim" "$@" + elif command -V vim >/dev/null; then [ -f "$HOME/.vim/vimrc" ] && VIMRC="$HOME/.vim/vimrc" sudo vim -u "${VIMRC:-$HOME/.vimrc}" "$@" - elif command -V nvim >/dev/null; then - sudo nvim -u "${XDG_CONFIG_HOME:-$HOME/.config}/nvim/init.vim" "$@" else command sudoedit "$@" fi @@ -83,3 +83,4 @@ alias grep='grep --color=auto' alias tree='tree -C --dirsfirst' alias ls='ls -h --group-directories-first --color=auto --classify=auto' alias info='info --vi-keys --init-file ~/.config/infokey' +alias rsync='rsync -h' diff --git a/.config/shell/bm-dirs b/.config/shell/bm-dirs index b729ac5..25eb1ea 100644 --- a/.config/shell/bm-dirs +++ b/.config/shell/bm-dirs @@ -1,7 +1,7 @@ # You can add comments to these files with # cac ${XDG_CACHE_HOME:-$HOME/.cache} cg ${XDG_CONFIG_HOME:-$HOME/.config} -lbn ${XDG_SCRIPTS_DIR:-$HOME/.local/bin} +lb ${XDG_SCRIPTS_DIR:-$HOME/.local/bin} lsh ${XDG_DATA_DIR:-$HOME/.local/share} lst ${XDG_STATE_DIR:-$HOME/.local/state} lsr ${XDG_SOURCE_DIR:-$HOME/.local/src} @@ -12,7 +12,7 @@ px ${XDG_PICTURES_DIR:-$HOME/Pictures} vd ${XDG_VIDEOS_DIR:-$HOME/Videos} nv ${XDG_CONFIG_HOME:-$HOME/.config}/nvim -lsha ${XDG_DATA_DIR:-$HOME/.local/share}/applications +lsa ${XDG_DATA_DIR:-$HOME/.local/share}/applications vnv ${XDG_DATA_DIR:-$HOME/.local/share}/virtualenvs ltr ${XDG_DATA_DIR:-$HOME/.local/share}/Trash dl ${XDG_DOCUMENTS_DIR:-$HOME/Documents}/latex @@ -36,16 +36,16 @@ sv ~/Phone/.stversions pw ~/Phone/Android/media/com.whatsapp.w4b/WhatsApp\ Business/Media/WhatsApp\ Business\ Documents mn /mnt -stg ${STORAGE:-/mnt/storage} -lbr ${STORAGE:-/mnt/storage}/Library -med ${STORAGE:-/mnt/storage}/Media -sts ${STORAGE:-/mnt/storage}/sites +sg ${STORAGE:-/mnt/storage} +lr ${STORAGE:-/mnt/storage}/Library +md ${STORAGE:-/mnt/storage}/Media +st ${STORAGE:-/mnt/storage}/sites sd /sdcard mp /run/media/$USER/ mtp /run/user/1000/gvfs usr ${PREFIX:-/usr} ush /usr/share usd /usr/share/doc -usha /usr/share/applications +usa /usr/share/applications tmp /tmp -tmu /tmp/mozilla_${USER}0 +mzt /tmp/mozilla_${USER}0 diff --git a/.config/shell/bm-files b/.config/shell/bm-files index 8685e00..2585175 100644 --- a/.config/shell/bm-files +++ b/.config/shell/bm-files @@ -4,21 +4,21 @@ bf ${XDG_CONFIG_HOME:-$HOME/.config}/shell/bm-files bd ${XDG_CONFIG_HOME:-$HOME/.config}/shell/bm-dirs -cpf ~/.profile -czp ~/.zprofile -cxp ~/.xprofile -cgi ~/.gitignore -czr ${XDG_CONFIG_HOME:-$HOME/.config}/zsh/.zshrc -car ${XDG_CONFIG_HOME:-$HOME/.config}/shell/aliasrc -clc ${XDG_CONFIG_HOME:-$HOME/.config}/lf/lfrc -csx ${XDG_CONFIG_HOME:-$HOME/.config}/sxiv/exec/key-handler -cin ${XDG_CONFIG_HOME:-$HOME/.config}/nvim/init.vim -cac ${XDG_CONFIG_HOME:-$HOME/.config}/alacritty/alacritty.toml -cxr ${XDG_CONFIG_HOME:-$HOME/.config}/X11/Xresources -cxi ${XDG_CONFIG_HOME:-$HOME/.config}/X11/xinitrc -cml ${XDG_CONFIG_HOME:-$HOME/.config}/mimeapps.list -cfi ${XDG_CONFIG_HOME:-$HOME/.config}/fd/ignore -csc ~/.ssh/config +pf ~/.profile +zp ~/.zprofile +xp ~/.xprofile +gi ~/.gitignore +zr ${XDG_CONFIG_HOME:-$HOME/.config}/zsh/.zshrc +ar ${XDG_CONFIG_HOME:-$HOME/.config}/shell/aliasrc +lf ${XDG_CONFIG_HOME:-$HOME/.config}/lf/lfrc +sx ${XDG_CONFIG_HOME:-$HOME/.config}/sxiv/exec/key-handler +in ${XDG_CONFIG_HOME:-$HOME/.config}/nvim/init.vim +ac ${XDG_CONFIG_HOME:-$HOME/.config}/alacritty/alacritty.toml +xr ${XDG_CONFIG_HOME:-$HOME/.config}/X11/Xresources +xi ${XDG_CONFIG_HOME:-$HOME/.config}/X11/xinitrc +ml ${XDG_CONFIG_HOME:-$HOME/.config}/mimeapps.list +fi ${XDG_CONFIG_HOME:-$HOME/.config}/fd/ignore +sc ~/.ssh/config zh ${XDG_STATE_HOME:-$HOME/.local/state}/zsh/history qn ${XDG_DOCUMENTS_HOME:-$HOME/Documents}/Notes/QuickNote.md |