linux:zsh:oh-my-zsh

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 [11/04/2020 16:08] – [config] matelinux:zsh:oh-my-zsh [01/07/2025 05:24] (actual) – [internal 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]]
Línia 16: Línia 16:
     * alternativa **zsh-autoenv**     * alternativa **zsh-autoenv**
   * **zsh-autoenv** [[https://github.com/Tarrasch/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     * no es un plugin nativo de oh-my-zsh
     * se integra desde **.zshrc** con un ''source''     * se integra desde **.zshrc** con un ''source''
Línia 25: Línia 26:
   * **transfer**: cli para [[https://transfer.sh]]   * **transfer**: cli para [[https://transfer.sh]]
   * **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
   * **colored-man-pages**   * **colored-man-pages**
Línia 42: Línia 43:
   * **git**   * **git**
   * **gitignore**: cli a gitignore.io   * **gitignore**: cli a gitignore.io
-  * **zsh_reload**: ''src'' para recargar sesión+    deprecated? 
 +  * **<del>zsh_reload</del>**: ''src'' para recargar sesión -> deprecated -> ''omz reload'' 
 +  * **zsh-bat** 
 +    * ''bat'', sustituto mejorado de ''cat'' 
 +    * sustituye ''cat'' por ''bat'' 
 +    * <code bash>git clone https://github.com/fdellwing/zsh-bat.git $ZSH_CUSTOM/plugins/zsh-bat</code> 
 +    * añadir a la sección **plugins** de **~/.zshrc**: **command-time** 
 +  * **zsh-command-time** 
 +    * <code bash>git clone https://github.com/popstas/zsh-command-time.git ~/.oh-my-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 
 + 
 +== external plugins 
 +  * [[https://tau.gr/posts/2021-06-08-zsh-command-time/]] 
 +    * <code bash>cd ~/.oh-my-zsh/custom/plugins 
 +git clone https://github.com/tom-auger/cmdtime</code> 
 +    * add to ''~/.zshrc''
  • linux/zsh/oh-my-zsh.1586646510.txt.gz
  • Darrera modificació: 11/04/2020 16:08
  • per mate