add aliases

This commit is contained in:
Jeff Lance 2021-03-27 17:01:37 +01:00
parent 48b3aa529b
commit c26998d583
3 changed files with 37 additions and 22 deletions

View File

@ -3,6 +3,13 @@
#
#
# Admin
#
alias udvrld='sudo udevadm control --reload-rules && sudo udevadm trigger'
#
# Editors
#
@ -18,6 +25,7 @@ alias md='mkdir -p' # mkdir alias
alias open='xdg-open' # open files
alias ls='lsd' # pretty ls
alias youtube-dl='youtube-dl -f best' # youtube-dl best download
alias xcolor='xcolor | xclip -i' # xcolor
#

View File

@ -13,19 +13,20 @@
# pamac Operations
#
alias pamsr='pamac search' # search through apt software package
alias paminf='pamac info' # show info about a package
alias pamud='pamac update' # update packages database
alias pamug='pamac upgrade' # upgrade packages
alias pamin='pamac install' # install package
alias pamre='pamac remove' # removes packages
alias pamudg='pamud && pamug'
alias pasea='pamac search' # search through apt software package
alias painf='pamac info' # show info about a package
alias pau='pamac update' # update packages database
alias paU='pamac upgrade' # upgrade packages
alias pain='pamac install' # install package
alias parem='pamac remove' # removes packages
alias pauU='pamud && pamug'
alias pareo='parem -o' # removes orphan packages
#
# pkgfile Operations
#
alias pamsf='pkgfile' # search file in packages
alias pasf ='pkgfile' # search file in packages

View File

@ -128,19 +128,19 @@ bindkey -M vicmd 'j' history-substring-search-down
# >>> tmux initialization >>>
#
if [[ $DISPLAY ]]; then
# If not running interactively, do not do anything
[[ $- != *i* ]] && return
# if [[ $DISPLAY ]]; then
# # If not running interactively, do not do anything
# [[ $- != *i* ]] && return
if [[ -z "$TMUX" ]] ;then
ID="$( tmux ls | grep -vm1 attached | cut -d: -f1 )" # get the id of a deattached session
if [[ -z "$ID" ]] ;then # if not available create a new one
tmux new-session
else
tmux attach-session -t "$ID" # if available attach to it
fi
fi
fi
# if [[ -z "$TMUX" ]] ;then
# ID="$( tmux ls | grep -vm1 attached | cut -d: -f1 )" # get the id of a deattached session
# if [[ -z "$ID" ]] ;then # if not available create a new one
# tmux new-session
# else
# tmux attach-session -t "$ID" # if available attach to it
# fi
# fi
# fi
# <<< tmux initialization <<<
#
@ -151,3 +151,9 @@ fi
#
[ -f ~/.fzf.zsh ] && source ~/.fzf.zsh
# <<< fzf initialization <<<
# >>> opam configuration >>>
#
test -r /home/jeff/.opam/opam-init/init.zsh && . /home/jeff/.opam/opam-init/init.zsh > /dev/null 2> /dev/null || true
# <<< opam configuration <<<