feat: non-root mount alias, disable zsh auto updates
This commit is contained in:
parent
f04d221b87
commit
d47060c71f
@ -1,29 +1,30 @@
|
||||
alias sudo='sudo '
|
||||
alias pls='sudo '
|
||||
alias cls='clear && l'
|
||||
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 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 vi="$EDITOR"
|
||||
alias tmp="cd $(mktemp -d)"
|
||||
alias wconfig="$EDITOR $HOME/.config/sway"
|
||||
alias zshconf="$EDITOR $ZDOTDIR/.zshrc && . $ZDOTDIR/.zshrc"
|
||||
|
||||
function fnalias() {
|
||||
# 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 =
|
||||
cmd="${cmd#*=}"
|
||||
# remove first and last char in this case, quotes
|
||||
cmd="${cmd:1:-1}"
|
||||
else
|
||||
cmd="${2}"
|
||||
cmd="$2"
|
||||
fi
|
||||
|
||||
env "${1}" "${cmd}" "${@:3}"
|
||||
env "$1" "$cmd" "${@:3}"
|
||||
}
|
||||
|
||||
alias watch='fnalias watch'
|
||||
|
@ -28,7 +28,7 @@ CASE_SENSITIVE="true"
|
||||
# HYPHEN_INSENSITIVE="true"
|
||||
|
||||
# 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 reminder # just remind me to update when it's time
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user