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:44] – estro | article:installer_oh-my-zsh [2024/02/27 10:34] (Version actuelle) – estro | ||
---|---|---|---|
Ligne 53: | Ligne 53: | ||
} || { | } || { | ||
cat << EOF > | cat << EOF > | ||
- | + | ## | |
- | export ZSH="$HOME/.oh-my-zsh" | + | echo $PATH|grep |
- | # | + | |
- | ZSH_THEME=" | + | |
# | # | ||
- | zstyle ': | ||
- | 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 74: | 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=" | ||
+ | # | ||
+ | ## | ||
+ | ## 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 | EOF | ||
+ | clear | ||
echo "Pour faire en sorte que **zsh** devienne votre " | echo "Pour faire en sorte que **zsh** devienne votre " | ||
" | " |
article/installer_oh-my-zsh.1698921896.txt.gz · Dernière modification : 2023/11/02 11:44 de estro