add aliases
This commit is contained in:
parent
48b3aa529b
commit
c26998d583
@ -3,6 +3,13 @@
|
|||||||
#
|
#
|
||||||
|
|
||||||
|
|
||||||
|
#
|
||||||
|
# Admin
|
||||||
|
#
|
||||||
|
|
||||||
|
alias udvrld='sudo udevadm control --reload-rules && sudo udevadm trigger'
|
||||||
|
|
||||||
|
|
||||||
#
|
#
|
||||||
# Editors
|
# Editors
|
||||||
#
|
#
|
||||||
@ -18,6 +25,7 @@ alias md='mkdir -p' # mkdir alias
|
|||||||
alias open='xdg-open' # open files
|
alias open='xdg-open' # open files
|
||||||
alias ls='lsd' # pretty ls
|
alias ls='lsd' # pretty ls
|
||||||
alias youtube-dl='youtube-dl -f best' # youtube-dl best download
|
alias youtube-dl='youtube-dl -f best' # youtube-dl best download
|
||||||
|
alias xcolor='xcolor | xclip -i' # xcolor
|
||||||
|
|
||||||
|
|
||||||
#
|
#
|
||||||
|
@ -13,19 +13,20 @@
|
|||||||
# pamac Operations
|
# pamac Operations
|
||||||
#
|
#
|
||||||
|
|
||||||
alias pamsr='pamac search' # search through apt software package
|
alias pasea='pamac search' # search through apt software package
|
||||||
alias paminf='pamac info' # show info about a package
|
alias painf='pamac info' # show info about a package
|
||||||
alias pamud='pamac update' # update packages database
|
alias pau='pamac update' # update packages database
|
||||||
alias pamug='pamac upgrade' # upgrade packages
|
alias paU='pamac upgrade' # upgrade packages
|
||||||
alias pamin='pamac install' # install package
|
alias pain='pamac install' # install package
|
||||||
alias pamre='pamac remove' # removes packages
|
alias parem='pamac remove' # removes packages
|
||||||
alias pamudg='pamud && pamug'
|
alias pauU='pamud && pamug'
|
||||||
|
alias pareo='parem -o' # removes orphan packages
|
||||||
|
|
||||||
|
|
||||||
#
|
#
|
||||||
# pkgfile Operations
|
# pkgfile Operations
|
||||||
#
|
#
|
||||||
|
|
||||||
alias pamsf='pkgfile' # search file in packages
|
alias pasf ='pkgfile' # search file in packages
|
||||||
|
|
||||||
|
|
||||||
|
@ -128,19 +128,19 @@ bindkey -M vicmd 'j' history-substring-search-down
|
|||||||
|
|
||||||
# >>> tmux initialization >>>
|
# >>> tmux initialization >>>
|
||||||
#
|
#
|
||||||
if [[ $DISPLAY ]]; then
|
# if [[ $DISPLAY ]]; then
|
||||||
# If not running interactively, do not do anything
|
# # If not running interactively, do not do anything
|
||||||
[[ $- != *i* ]] && return
|
# [[ $- != *i* ]] && return
|
||||||
|
|
||||||
if [[ -z "$TMUX" ]] ;then
|
# if [[ -z "$TMUX" ]] ;then
|
||||||
ID="$( tmux ls | grep -vm1 attached | cut -d: -f1 )" # get the id of a deattached session
|
# 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
|
# if [[ -z "$ID" ]] ;then # if not available create a new one
|
||||||
tmux new-session
|
# tmux new-session
|
||||||
else
|
# else
|
||||||
tmux attach-session -t "$ID" # if available attach to it
|
# tmux attach-session -t "$ID" # if available attach to it
|
||||||
fi
|
# fi
|
||||||
fi
|
# fi
|
||||||
fi
|
# fi
|
||||||
# <<< tmux initialization <<<
|
# <<< tmux initialization <<<
|
||||||
|
|
||||||
#
|
#
|
||||||
@ -151,3 +151,9 @@ fi
|
|||||||
#
|
#
|
||||||
[ -f ~/.fzf.zsh ] && source ~/.fzf.zsh
|
[ -f ~/.fzf.zsh ] && source ~/.fzf.zsh
|
||||||
# <<< fzf initialization <<<
|
# <<< 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 <<<
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user