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 [2024/01/15 16:22] 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 colored-man-pages zsh-navigation-tools zsh-autosuggestions)+
 # #
-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 ll="/bin/ls -lh" 
 alias  l="/bin/ls -A" alias  l="/bin/ls -A"
 alias rm="/bin/rm -i" alias rm="/bin/rm -i"
Ligne 75: 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() { function g() {
   grep $@ | grep -v grep   grep $@ | grep -v grep
Ligne 90: Ligne 110:
     eval $(cat $memo_ssh) >/dev/null     eval $(cat $memo_ssh) >/dev/null
   } ||  {   } ||  {
 +    mkdir -p /run/user/$(id -u)
     ssh-agent >$memo_ssh     ssh-agent >$memo_ssh
     eval $(cat $memo_ssh) >/dev/null     eval $(cat $memo_ssh) >/dev/null
Ligne 96: Ligne 117:
 } }
 def_agent_ssh def_agent_ssh
 +##----------------------------------------------------------------------------------
  
-     
 EOF EOF
  
article/installer_oh-my-zsh.1705332141.txt.gz · Dernière modification : 2024/01/15 16:22 de estro