diff --git a/deploy_dotfiles.sh b/deploy_dotfiles.sh index 535d6ec..c2e9b31 100755 --- a/deploy_dotfiles.sh +++ b/deploy_dotfiles.sh @@ -1,18 +1,43 @@ #!/bin/bash if ! [ -x "$(command -v git)" ]; then - echo "Installation de git" - sudo apt -y install git + echo "git manque et doit être installé" + MISSING+=git fi if ! [ -x "$(command -v zsh)" ]; then - echo "Installation de zsh" - sudo apt -y install zsh + echo "zsh manque et doit être installé" + MISSING+=zsh fi if ! [ -x "$(command -v nvim)" ]; then - echo "Installation de neovim" - sudo apt -y install neovim python3-venv + echo "neovim manque et doit être installé" + MISSING+=neovim python3-venv +fi + +if ! [ -x "$(command -v exa)" ]; then + echo "exa manque et doit être installé" + MISSING+=exa +fi + +if ! [ -x "$(command -v fdfind)" ]; then + echo "fdfind manque et doit être installé" + MISSING+=fdfind +fi + +if ! [ -x "$(command -v fzf)" ]; then + echo "fzf manque et doit être installé" + MISSING+=fzf +fi + +if ! [ -x "$(command -v ripgrep)" ]; then + echo "ripgrep manque et doit être installé" + MISSING+=ripgrep +fi + +if ! [ MISSING = "" ]; then + Installation de : $MISSING + sudo apt -y install $MISSING fi if ! [ -x "$HOME/.bin/starship" ]; then diff --git a/dot_zsh/aliases.tmpl b/dot_zsh/aliases.tmpl index 9e5eec8..604139f 100644 --- a/dot_zsh/aliases.tmpl +++ b/dot_zsh/aliases.tmpl @@ -2,8 +2,6 @@ alias vim="nvim" alias vi="nvim" alias ta='tmux a' alias ls='ls --color=auto' -alias dir='ls --color=auto --format=vertical' -alias vdir='ls --color=auto --format=long' alias la='ls -A' alias l='clear' alias lh='ls -lah' @@ -11,9 +9,7 @@ alias grep='grep --color' alias rgrep='rgrep --color' alias zz='zcat $1 | most' alias ccat="cat -p" -alias ga="git add -p" alias gc="git commit" -alias gd="git diff" alias gp="git pull" alias gpp="git pp" alias gs="git status" diff --git a/dot_zsh_plugins b/dot_zsh_plugins index 798ac23..260f035 100644 --- a/dot_zsh_plugins +++ b/dot_zsh_plugins @@ -3,3 +3,6 @@ zdharma/history-search-multi-word zsh-users/zsh-completions #zsh-users/zsh-syntax-highlighting t413/zsh-background-notify +wfxr/forgit +Aloxaf/fzf-tab +reegnz/jq-zsh-plugin