add new aliases for Slackware

This commit is contained in:
Sergei Akhmatdinov 2019-11-26 11:28:45 -05:00
parent f83e08b05f
commit 988477f903
2 changed files with 18 additions and 4 deletions

View File

@ -51,7 +51,7 @@ DISABLE_UNTRACKED_FILES_DIRTY="true"
# Custom plugins may be added to ~/.oh-my-zsh/custom/plugins/
# Example format: plugins=(rails git textmate ruby lighthouse)
# Add wisely, as too many plugins slow down shell startup.
plugins=(wd)
plugins=(wd tmux)
source $ZSH/oh-my-zsh.sh
@ -66,6 +66,7 @@ source $ZSH/oh-my-zsh.sh
# if [[ -n $SSH_CONNECTION ]]; then
# export EDITOR='vim'
# else
# export EDITOR='mvim'
# fi

View File

@ -5,7 +5,7 @@ export RANGER_LOAD_DEFAULT_RC=FALSE
############################################################
## Exports
############################################################
export EDITOR='nvim'
export EDITOR='vim'
export PAGER='less'
export BROWSER='qutebrowser'
@ -44,8 +44,12 @@ transfer()
############################################################
# neo- aliases
alias vim="nvim"
if type nvim > /dev/null 2>&1; then
alias vim='nvim'
fi
alias mutt='neomutt'
# Quick Emacs
alias qemacs='emacs -q -nw'
alias sqemacs='sudo -q emacs -nw'
@ -108,7 +112,16 @@ if pacman -V &> /dev/null; then
fi
# Slackware
if [[ -e /etc/slackware-release ]]; then
if [[ -e /etc/slackware-version ]]; then
# Slackware doesn't add sysad tools to user path by default
export PATH="$PATH:/usr/local/sbin:/sbin:/usr/sbin"
# Priv escalation
alias slapt-get='sudo slapt-get'
alias slackpkg='sudo slackpkg'
alias sbopkg='sudo sbopkg'
alias installpkg='sudo installpkg'
alias removepkg='sudo removepkg'
alias pm-suspend='sudo pmsuspend'
alias pm-hibernate='sudo pm-hibernate'
fi