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ó

Següent revisió
Revisió prèvia
linux:zsh:oh-my-zsh [22/03/2020 05:00] – creat matelinux:zsh:oh-my-zsh [02/06/2026 09:37] (actual) – [external plugins] mate
Línia 8: Línia 8:
  
 == config == config
-  * ''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)
-    * autoenv:[[https://github.com/inishchith/autoenv]]+    * wrapper de autoenv:[[https://github.com/inishchith/autoenv]]
     * no funciona el **.leave**     * no funciona el **.leave**
-    * alternativa: [[https://github.com/Tarrasch/zsh-autoenv]] +    * alternativa **zsh-autoenv**
-      no es un plugin como tal +
-      se integra desde **.zshrc** con un ''source'' +
-      * funciona solo para zsh+
   * **transfer**: cli para [[https://transfer.sh]]   * **transfer**: cli para [[https://transfer.sh]]
 +  * **colored-man-pages**
 +  * **coloriza**
 +  * **copybuffer**: CRTL+o para copiar texto seleccionado o linea cursor a portapapeles
 +  * **copyfile**: ''copyfile <FILE>'' a portapapeles
 +    * problemas, requiere libteria adicional
 +    * lib:[[https://github.com/robbyrussell/oh-my-zsh/blob/master/lib/clipboard.zsh]]
 +  * **docker**
 +  * **docker-compose**
 +  * **git**
 +  * **gitignore**: cli a gitignore.io
 +    * deprecated?
 +  * **<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**:   * **zsh-syntax-highlighting**:
-    * ''apt-get install 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'' +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>+# 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     * añadir a la sección de plugins
   * **zsh-autosuggestions**:   * **zsh-autosuggestions**:
-    * ''git clone https://github.com/zsh-users/zsh-autosuggestions $ZSH_CUSTOM/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     * 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.1584878407.txt.gz
  • Darrera modificació: 22/03/2020 05:00
  • per mate