add aliases
This commit is contained in:
parent
48b3aa529b
commit
c26998d583
@ -3,11 +3,18 @@
|
||||
#
|
||||
|
||||
|
||||
#
|
||||
# Admin
|
||||
#
|
||||
|
||||
alias udvrld='sudo udevadm control --reload-rules && sudo udevadm trigger'
|
||||
|
||||
|
||||
#
|
||||
# Editors
|
||||
#
|
||||
|
||||
alias vim='nvim' # redirect vim to nvim
|
||||
alias vim='nvim' # redirect vim to nvim
|
||||
|
||||
|
||||
#
|
||||
@ -18,13 +25,14 @@ 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
|
||||
|
||||
|
||||
#
|
||||
# Shortcuts
|
||||
#
|
||||
|
||||
hash -d crs="${HOME}/Cours" # cours
|
||||
hash -d crs="${HOME}/Cours" # cours
|
||||
hash -d doc="${HOME}/Documents" # documents
|
||||
hash -d dot="${HOME}/dotfiles" # dotfiles
|
||||
|
||||
|
@ -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
|
||||
|
||||
|
||||
|
@ -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 <<<
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user