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 [06/11/2024 01:13] – [plugins] matelinux:zsh:oh-my-zsh [01/07/2025 05:24] (actual) – [internal plugins] mate
Línia 26: 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 43: Línia 43:
   * **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''
 +  * **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 == external plugins
   * [[https://tau.gr/posts/2021-06-08-zsh-command-time/]]   * [[https://tau.gr/posts/2021-06-08-zsh-command-time/]]
     * <code bash>cd ~/.oh-my-zsh/custom/plugins     * <code bash>cd ~/.oh-my-zsh/custom/plugins
-git clone https://github.com/tom-auger/cmdtime<(/code>+git clone https://github.com/tom-auger/cmdtime</code>
     * add to ''~/.zshrc''     * add to ''~/.zshrc''
  • linux/zsh/oh-my-zsh.1730884432.txt.gz
  • Darrera modificació: 06/11/2024 01:13
  • per mate