Add bash/zsh completion to your own commands in Linux Reference documentation Bash documentation: /usr/share/doc/bash Programmable Completion Programmable Completion Builtins About zsh The shell I use is zsh, I use oh-my-zsh to manage plug-ins, and I added incr and zsh-autosuggestions plug-ins. I first tried to start based on these two plug-ins, but the source code of […]
Tag: zsh
Ultimate Shell: Zsh (CentOS7 installation zsh + Oh my zsh + tmux)
CentOS7 installation zsh and configuration Oh my zsh When we operate the Linux terminal through the Shell, most of the configuration, color differentiation, and command prompts cannot achieve the results we expected or the operations are relatively cumbersome. Today I will introduce the ultimate and easy-to-use terminal software for Linux-like systems. It is called the […]
Custom oh-my-zsh theme style, code and syntax explanation
Customize oh-my-zsh theme style, code and syntax explanation Summary: A brief introduction to the code of .zsh-theme (no functions involved) Keywords: ohmyzsh zsh-theme syntax https://github.com/ohmyzsh/ohmyzsh/wiki/Themes official theme library We can find the corresponding theme code under ~/.oh-my-zsh/themes, and compare it with the official theme style https://zsh.sourceforge.io/Intro/intro_14.html#SEC14 part of prompt word syntax 1. Grammar introduction Let […]
Ubuntu installs oh-my-zsh and fails: Connection refused solution
ubuntu install oh-my-zsh environment Install 1. Install zsh 1.1 Verification after installation 2. Install oh-my-zsh 2.1 Possible errors Wrong solution: oh-my-zsh configuration syntax highlighting plugin Theme and font settings (powerlevel9k theme) final configuration file reference blog post Environment Ubuntu 20.04 LTS Linux is universal anyway Install 1. Install zsh sudo apt install zsh 1.1 Verification […]
Ubuntu–Oh My Zsh
1. Some features of zsh 1. Compatible with bash, there is no pressure to switch from the brothers who used to use bash. 2. Powerful history record function, when using the arrow keys to search for historical commands, zsh supports limited search. For example, if you type ls and then press the up arrow key, […]
Manjaro configures zsh and powerLine theme installation
Configure zsh and powerLine theme installation install zsh Install oh-my-zsh Install powerline and fonts view command View existing shells View the current shell Use zsh to replace bash (reopen the terminal to take effect) restore bash (requires restart) Check zsh version powerline configuration bashrc configuration (note the python version) vim .zshrc (note the python version) […]
The difference between /etc/profile and /etc/bashrc, ~/.bash_profile and ~/.bashrc, .zshrc
Introduction The /etc/profile file is the configuration file of the system. After modifying the file, the modification must be sourced to take effect, and it will take effect for each user; The /etc/bashrc file is the file executed when bash is opened, and it will take effect after restarting bash after modification; ~/.bash_profile is a […]
Ubuntu installs zsh + oh my zsh to beautify the terminal
install zsh Installing zsh on Ubuntu is very simple, just execute the command: sudo apt install zsh BASH After installing oh my zsh, zsh will be automatically set as the default terminal. If manually setting the default shell: chsh -s `which zsh` ARCADE Enter the password again and reboot. install oh-my-zsh Oh My Zsh is […]
PowerShell Beautification on Windows and Linux Terminal zsh Beautification
Table of Contents write first Terminal beautification under Linux system 1. Install zsh 2. Install oh-my-zsh 3. Modify zsh theme 3. Install the zsh plugin PowerShell beautification under Windows 1. Install the terminal console 2. Install PowerShell Fonts 3. Install oh-my-posh 4. Write the default configuration file 5. Modify the theme 6. Close the prompt […]
zsh/oh-my-zsh for ubuntu terminal beautification
Look at the effect first: (If you are curious that this is very similar to the terminal that comes with mobaxterm, that’s right, I changed it like that) 1. Installation 1.1 Install zsh shell first: Enter the following command: sudo apt-get install zsh 1.2 Install oh-my-zsh: 1.2.1 Case 1: You can access github smoothly You […]