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 [2024/01/15 12:58] – estro | article:installer_oh-my-zsh [2024/02/27 10:34] (Version actuelle) – estro | ||
---|---|---|---|
Ligne 53: | Ligne 53: | ||
} || { | } || { | ||
cat << EOF > | cat << EOF > | ||
- | + | ##---------------------------------------------------------------------------------- | |
- | export ZSH=" | + | echo $PATH|grep $HOME/bin: >/ |
- | # | + | |
- | ZSH_THEME=" | + | |
- | # | + | |
- | zstyle ': | + | |
- | plugins=(git colored-man-pages zsh-navigation-tools zsh-autosuggestions) | + | |
- | # | + | |
- | source | + | |
- | # | + | |
# | # | ||
+ | ## | ||
## alias ########################################################################### | ## alias ########################################################################### | ||
- | ## | ||
# | # | ||
+ | alias ll="/ | ||
alias la="/ | alias la="/ | ||
- | alias ll="/ | ||
alias l="/ | alias l="/ | ||
alias rm="/ | alias rm="/ | ||
Ligne 75: | 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() { | function g() { | ||
grep $@ | grep -v grep | grep $@ | grep -v grep | ||
} | } | ||
- | function def_agent_ssh() { | + | function def_agent_ssh() { |
- | memo_ssh="/ | + | memo_ssh="/ |
- | [ -e $memo_ssh ] || ssh-agent > | + | [ -e $memo_ssh ] && { |
- | eval $(cat $memo_ssh) >/ | + | eval $(cat $memo_ssh) >/ |
+ | } || | ||
+ | mkdir -p / | ||
+ | | ||
+ | eval $(cat $memo_ssh) >/ | ||
+ | ssh-add | ||
+ | } | ||
} | } | ||
+ | def_agent_ssh | ||
+ | ## | ||
EOF | EOF |
article/installer_oh-my-zsh.1705319897.txt.gz · Dernière modification : 2024/01/15 12:58 de estro