feat: non-root mount alias, disable zsh auto updates

This commit is contained in:
AngeD 2022-08-23 09:27:11 +02:00
parent f04d221b87
commit d47060c71f
2 changed files with 12 additions and 11 deletions

View File

@ -1,29 +1,30 @@
alias sudo='sudo '
alias pls='sudo '
alias cls='clear && l' alias cls='clear && l'
alias config="git --git-dir=$HOME/.dotfiles --work-tree=$HOME" alias config="git --git-dir=$HOME/.dotfiles --work-tree=$HOME"
alias wconfig="$EDITOR $HOME/.config/sway"
alias zshconf="$EDITOR $ZDOTDIR/.zshrc && . $ZDOTDIR/.zshrc"
alias startgui="exec sway 2> $HOME/sway.log"
alias minecraft='DRI_PRIME=1 minecraft-launcher' alias minecraft='DRI_PRIME=1 minecraft-launcher'
alias mount='udisksctl mount -b'
alias pls='sudo '
alias startgui="sway 2> $HOME/sway.log"
alias sudo='sudo '
alias tmp="cd $(mktemp -d)"
alias umnt='sudo umount /mnt -R' alias umnt='sudo umount /mnt -R'
alias vi="$EDITOR" alias vi="$EDITOR"
alias tmp="cd $(mktemp -d)" alias wconfig="$EDITOR $HOME/.config/sway"
alias zshconf="$EDITOR $ZDOTDIR/.zshrc && . $ZDOTDIR/.zshrc"
function fnalias() { function fnalias() {
# alias alias_cmd='cmd' # alias alias_cmd='cmd'
cmd="$(alias "${2}")" cmd="$(alias "$2")"
if [ -n "${cmd}" ]; then if [ -n "$cmd" ]; then
# remove everything before and including the first = # remove everything before and including the first =
cmd="${cmd#*=}" cmd="${cmd#*=}"
# remove first and last char in this case, quotes # remove first and last char in this case, quotes
cmd="${cmd:1:-1}" cmd="${cmd:1:-1}"
else else
cmd="${2}" cmd="$2"
fi fi
env "${1}" "${cmd}" "${@:3}" env "$1" "$cmd" "${@:3}"
} }
alias watch='fnalias watch' alias watch='fnalias watch'

View File

@ -28,7 +28,7 @@ CASE_SENSITIVE="true"
# HYPHEN_INSENSITIVE="true" # HYPHEN_INSENSITIVE="true"
# Uncomment one of the following lines to change the auto-update behavior # Uncomment one of the following lines to change the auto-update behavior
# zstyle ':omz:update' mode disabled # disable automatic updates zstyle ':omz:update' mode disabled # disable automatic updates
# zstyle ':omz:update' mode auto # update automatically without asking # zstyle ':omz:update' mode auto # update automatically without asking
# zstyle ':omz:update' mode reminder # just remind me to update when it's time # zstyle ':omz:update' mode reminder # just remind me to update when it's time