Diferències

Ací es mostren les diferències entre la revisió seleccionada i la versió actual de la pàgina.

Enllaç a la visualització de la comparació

Ambdós costats versió prèvia Revisió prèvia
Següent revisió
Revisió prèvia
linux:zsh:oh-my-zsh [07/10/2021 23:04] matelinux:zsh:oh-my-zsh [02/06/2026 09:37] (actual) – [external plugins] mate
Línia 10: Línia 10:
   * ''~/.oh-my-zsh/tools/theme_chooser.sh''   * ''~/.oh-my-zsh/tools/theme_chooser.sh''
  
-== plugins+== internal plugins
   * **dotenv**: autoejeción scripts predefinidos en directorios (set-up variables)   * **dotenv**: autoejeción scripts predefinidos en directorios (set-up variables)
     * wrapper de autoenv:[[https://github.com/inishchith/autoenv]]     * wrapper de autoenv:[[https://github.com/inishchith/autoenv]]
     * no funciona el **.leave**     * no funciona el **.leave**
     * alternativa **zsh-autoenv**     * alternativa **zsh-autoenv**
-  * **zsh-autoenv** [[https://github.com/Tarrasch/zsh-autoenv]] 
-    * [[linux:zsh:oh-my-zsh:autoenv]] 
-    * no es un plugin nativo de oh-my-zsh 
-    * se integra desde **.zshrc** con un ''source'' 
-    * funciona solo para zsh 
-    * ficheros **.autoenv.zsh** 
-    * instrucciones interesantes: 
-      * ''autostash VAR=VALOR'' -> setea nuevo valor, conservando el anterior y lo recupera al salir del directorio 
-    * ubicación ficheros autorizados: ''~/.local/share/autoenv_auth'' 
   * **transfer**: cli para [[https://transfer.sh]]   * **transfer**: cli para [[https://transfer.sh]]
-  * **zsh-syntax-highlighting**: 
-    * ''apt-get install zsh-syntax-highlighting'' 
-    * ''git clone https://github.com/zsh-users/zsh-syntax-highlighting.git ${ZSH_CUSTOM}/plugins/zsh-syntax-highlighting'' 
-    * <del>''echo "source ${ZSH}/plugins/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh" >> ${ZDOTDIR:-$HOME}/.zshrc''</del> 
-    * añadir a la sección de plugins 
-  * **zsh-autosuggestions**: 
-    * ''git clone https://github.com/zsh-users/zsh-autosuggestions $ZSH_CUSTOM/plugins/zsh-autosuggestions'' 
-    * añadir a la sección de plugins 
   * **colored-man-pages**   * **colored-man-pages**
   * **coloriza**   * **coloriza**
Línia 43: Línia 26:
   * **git**   * **git**
   * **gitignore**: cli a gitignore.io   * **gitignore**: cli a gitignore.io
 +    * deprecated?
   * **<del>zsh_reload</del>**: ''src'' para recargar sesión -> deprecated -> ''omz reload''   * **<del>zsh_reload</del>**: ''src'' para recargar sesión -> deprecated -> ''omz reload''
 +
 +
 +== external plugins
 +  * **zsh-bat**:
 +    * <code bash>git clone https://github.com/fdellwing/zsh-bat.git $ZSH_CUSTOM/plugins/zsh-bat</code>
 +    * [[..:utils:bat|]]
 +  * **zsh-syntax-highlighting**:
 +    * <code bash>apt-get install zsh-syntax-highlighting
 +git clone https://github.com/zsh-users/zsh-syntax-highlighting.git ${ZSH_CUSTOM}/plugins/zsh-syntax-highlighting
 +# ya no: echo "source ${ZSH}/plugins/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh" >> ${ZDOTDIR:-$HOME}/.zshrc</code>
 +    * añadir a la sección de plugins
 +  * **zsh-autosuggestions**:
 +    * <code bash>git clone https://github.com/zsh-users/zsh-autosuggestions $ZSH_CUSTOM/plugins/zsh-autosuggestions</code>
 +    * añadir a la sección de plugins
 +  * **zsh-autoenv** [[https://github.com/Tarrasch/zsh-autoenv]]
 +    * [[linux:zsh:oh-my-zsh:autoenv]]
 +    * no es un plugin nativo de oh-my-zsh
 +    * se integra desde **.zshrc** con un ''source''
 +    * funciona solo para zsh
 +    * ficheros **.autoenv.zsh**
 +    * instrucciones interesantes:
 +      * ''autostash VAR=VALOR'' -> setea nuevo valor, conservando el anterior y lo recupera al salir del directorio
 +    * ubicación ficheros autorizados: ''~/.local/share/autoenv_auth''
 +  * **cmdtime**: [[https://tau.gr/posts/2021-06-08-zsh-command-time/]]
 +    * <code bash>git clone https://github.com/tom-auger/cmdtime $ZSH_CUSTOM/plugins/cmdtime</code>
 +    * add to ''~/.zshrc''
 +
 +==external themes
 +  * [[linux:zsh:oh-my-zsh:p10k]]
 +== external (no usados)
 +  * **zsh-command-time**
 +    * <code bash>git clone https://github.com/popstas/zsh-command-time.git $ZSH_CUSTOM/plugins/command-time</code>
 +    * añadir a la sección **plugins** de **~/.zshrc**
 +    * personalización:<code properties># If command execution time above min. time, plugins will output time.
 +ZSH_COMMAND_TIME_MIN_SECONDS=3
 +
 +# Message to display (set to "" for disable).
 +ZSH_COMMAND_TIME_MSG="Execution time: %s sec"
 +
 +# Message color.
 +ZSH_COMMAND_TIME_COLOR="cyan"
 +
 +# Exclude some commands
 +ZSH_COMMAND_TIME_EXCLUDE=(vim mcedit)</code>
 +     * ''$ZSH_COMMAND_TIME'' contiene el valor de tiempo del último comando
 +
  • linux/zsh/oh-my-zsh.1633673083.txt.gz
  • Darrera modificació: 07/10/2021 23:04
  • per mate