From c26998d583e9b81b37a923d267495e01e5a9f042 Mon Sep 17 00:00:00 2001 From: Jeff LANCE Date: Sat, 27 Mar 2021 17:01:37 +0100 Subject: [PATCH] add aliases --- conf.d/zim/modules/jl-helper/init.zsh | 12 +++++++++-- conf.d/zim/modules/manjaro/init.zsh | 17 ++++++++------- conf.d/zim/zshrc | 30 ++++++++++++++++----------- 3 files changed, 37 insertions(+), 22 deletions(-) diff --git a/conf.d/zim/modules/jl-helper/init.zsh b/conf.d/zim/modules/jl-helper/init.zsh index 5650beb..c8f3a8e 100644 --- a/conf.d/zim/modules/jl-helper/init.zsh +++ b/conf.d/zim/modules/jl-helper/init.zsh @@ -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 diff --git a/conf.d/zim/modules/manjaro/init.zsh b/conf.d/zim/modules/manjaro/init.zsh index 4ca8e5d..25151f4 100644 --- a/conf.d/zim/modules/manjaro/init.zsh +++ b/conf.d/zim/modules/manjaro/init.zsh @@ -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 diff --git a/conf.d/zim/zshrc b/conf.d/zim/zshrc index 948bad6..801187e 100644 --- a/conf.d/zim/zshrc +++ b/conf.d/zim/zshrc @@ -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 <<< +