article:installer_oh-my-zsh
Différences
Ci-dessous, les différences entre deux révisions de la page.
Les deux révisions précédentesRévision précédenteProchaine révision | Révision précédente | ||
article:installer_oh-my-zsh [2023/11/02 11:05] – estro | article:installer_oh-my-zsh [2024/02/27 10:34] (Version actuelle) – estro | ||
---|---|---|---|
Ligne 48: | Ligne 48: | ||
<code bash> | <code bash> | ||
- | [ ! -e ~/.zshrc ] && { | + | [ -e ~/.zshrc ] && { |
- | cat << EOF >~/.zshrc | + | echo "Le fichier |
- | export ZSH=" | + | Si vous souhaitez le suppimmer passez la commande : rm ~/.zshrc" |
- | # | + | } || { |
- | ZSH_THEME=" | + | cat << EOF > |
- | # | + | ##---------------------------------------------------------------------------------- |
- | zstyle ': | + | echo $PATH|grep $HOME/bin: >/ |
- | plugins=(git zsh-autosuggestions zsh-syntax-highlighting zsh-syntax-highlighting zsh-autocomplete) | + | |
# | # | ||
- | source $ZSH/ | ||
- | # | ||
- | # | ||
- | ## alias ########################################################################### | ||
## | ## | ||
+ | ## alias ########################################################################### | ||
# | # | ||
+ | alias ll="/ | ||
alias la="/ | alias la="/ | ||
alias l="/ | alias l="/ | ||
Ligne 70: | Ligne 67: | ||
alias f="/ | alias f="/ | ||
# | # | ||
- | ## Compilation flags ############################################################### | ||
## | ## | ||
+ | ## Constantes environnement ############################################################### | ||
+ | # | ||
export LANG=fr_FR.UTF-8 | export LANG=fr_FR.UTF-8 | ||
export LANGUAGE=fr_FR | export LANGUAGE=fr_FR | ||
export ARCHFLAGS=" | export ARCHFLAGS=" | ||
- | EOF | + | # |
+ | ## | ||
+ | ## oh-my-zsh ########################################################################### | ||
+ | # | ||
+ | export ZSH=" | ||
+ | |||
+ | zstyle ': | ||
+ | |||
+ | plugins=(git colored-man-pages zsh-navigation-tools zsh-autosuggestions) | ||
+ | |||
+ | |||
+ | export EDITOR=nano | ||
+ | |||
+ | #source / | ||
+ | export ZSH_THEME=" | ||
+ | export LANG=fr_FR.UTF-8 | ||
+ | export LANGUAGE=fr_FR | ||
+ | |||
+ | source $ZSH/ | ||
+ | |||
+ | export PROMPT=" | ||
+ | $(build_prompt) | ||
+ | > " | ||
+ | |||
+ | alias zshconfig=" | ||
+ | ## | ||
+ | ## fontions utiles ############################################################### | ||
+ | # | ||
+ | function g() { | ||
+ | grep $@ | grep -v grep | ||
} | } | ||
+ | |||
+ | function def_agent_ssh() { | ||
+ | memo_ssh="/ | ||
+ | [ -e $memo_ssh ] && { | ||
+ | eval $(cat $memo_ssh) >/ | ||
+ | } || { | ||
+ | mkdir -p / | ||
+ | ssh-agent > | ||
+ | eval $(cat $memo_ssh) >/ | ||
+ | ssh-add | ||
+ | } | ||
+ | } | ||
+ | def_agent_ssh | ||
+ | ## | ||
+ | |||
+ | EOF | ||
+ | |||
+ | clear | ||
+ | echo "Pour faire en sorte que **zsh** devienne votre " | ||
+ | " | ||
+ | } | ||
+ | |||
</ | </ | ||
</ | </ |
article/installer_oh-my-zsh.1698919505.txt.gz · Dernière modification : 2023/11/02 11:05 de estro