Outils pour utilisateurs

Outils du site


article:installer_oh-my-zsh

Différences

Ci-dessous, les différences entre deux révisions de la page.

Lien vers cette vue comparative

Les deux révisions précédentesRévision précédente
Prochaine révision
Révision précédente
article:installer_oh-my-zsh [2023/11/02 11:41] estroarticle:installer_oh-my-zsh [2024/02/27 10:34] (Version actuelle) estro
Ligne 53: Ligne 53:
 } || {  } || { 
 cat << EOF >~/.zshrc  cat << EOF >~/.zshrc 
- +##---------------------------------------------------------------------------------- 
-export ZSH="$HOME/.oh-my-zsh" +echo $PATH|grep $HOME/bin: >/dev/null; [ $? -ne 0  ] && [ -e $HOME/bin ] && export PATH=$HOME/bin:$PATH
-+
-ZSH_THEME="agnoster"+
 # #
-zstyle ':omz:update' mode reminder  # just remind me to update when it's time 
-plugins=(git zsh-autosuggestions zsh-syntax-highlighting zsh-syntax-highlighting zsh-autocomplete) 
-# 
-source $ZSH/oh-my-zsh.sh 
-# 
-# 
-## alias ########################################################################### 
 ##---------------------------------------------------------------------------------- ##----------------------------------------------------------------------------------
 +## alias ###########################################################################
 # #
 +alias ll="/bin/ls -l --color"
 alias la="/bin/ls -lah" alias la="/bin/ls -lah"
 alias  l="/bin/ls -A" alias  l="/bin/ls -A"
Ligne 74: Ligne 67:
 alias  f="/bin/clear" alias  f="/bin/clear"
 # #
-## 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="-arch x86_64" export ARCHFLAGS="-arch x86_64"
 +#
 +##----------------------------------------------------------------------------------
 +## oh-my-zsh ###########################################################################
 +#
 +export ZSH="$HOME/.oh-my-zsh/"
 +
 +zstyle ':omz:update' mode auto      # update automatically without asking
 +
 +plugins=(git colored-man-pages zsh-navigation-tools zsh-autosuggestions)
 +
 +
 +export EDITOR=nano
 +
 +#source /usr/share/powerline/bindings/zsh/powerline.zsh
 +export ZSH_THEME="agnoster"
 +export LANG=fr_FR.UTF-8
 +export LANGUAGE=fr_FR
 +
 +source $ZSH/oh-my-zsh.sh
 +
 +export PROMPT="%{%f%b%k%}
 +$(build_prompt)
 +> "
 +
 +alias zshconfig="nano -cl ~/.zshrc"
 +##----------------------------------------------------------------------------------
 +## fontions utiles ###############################################################
 +#
 +function g() {
 +  grep $@ | grep -v grep
 +}
 +
 +function def_agent_ssh() {
 +  memo_ssh="/run/user/$(id -u)/env_ssh"
 +  [ -e $memo_ssh ] && {
 +    eval $(cat $memo_ssh) >/dev/null
 +  } ||  {
 +    mkdir -p /run/user/$(id -u)
 +    ssh-agent >$memo_ssh
 +    eval $(cat $memo_ssh) >/dev/null
 +    ssh-add
 +  }
 +}
 +def_agent_ssh
 +##----------------------------------------------------------------------------------
 +
 EOF EOF
 +
 +clear
 +echo "Pour faire en sorte que **zsh** devienne votre "shell" par défaut passez la commande : chsh -s $(which zsh)
 +"
  
  
article/installer_oh-my-zsh.1698921680.txt.gz · Dernière modification : 2023/11/02 11:41 de estro