mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-01-16 02:27:03 +01:00
zsh-autosuggestions
This commit is contained in:
parent
da056b7527
commit
43ae2639fb
4 changed files with 32 additions and 13 deletions
|
|
@ -12,22 +12,24 @@ macOS
|
||||||
|
|
||||||
* install [HomeBrew](https://brew.sh/) (probably already installed)
|
* install [HomeBrew](https://brew.sh/) (probably already installed)
|
||||||
* install [iTerm2](https://www.iterm2.com/)
|
* install [iTerm2](https://www.iterm2.com/)
|
||||||
|
* install/configure iTerm2 colour themes [Grove Box contrib](https://github.com/gruvbox-community/gruvbox-contrib)
|
||||||
* install prereqs
|
* install prereqs
|
||||||
* need to install [Nerd Fonts](https://www.nerdfonts.com) (may want other fonts but must be `Nerd` variety)
|
* need to install [Nerd Fonts](https://www.nerdfonts.com) (may want other fonts but must be `Nerd` variety)
|
||||||
|
|
||||||
```shell
|
```shell
|
||||||
brew tap homebrew/cask-fonts
|
brew tap homebrew/cask-fonts
|
||||||
brew install --cask font-fantasque-sans-mono
|
brew install --cask font-meslo-lg-nerd-font
|
||||||
brew install --cask font-hack-nerd-font
|
brew install --cask font-hack-nerd-font
|
||||||
brew install --cask font-fira-nerd-font
|
brew install --cask font-fira-nerd-font
|
||||||
```
|
```
|
||||||
|
|
||||||
* Configure iTerm2 to use one of the nerd fonts
|
* Configure iTerm2 to use one of the nerd fonts (I like hack)
|
||||||
* needed for `oh-my-zsh` module `autojump`
|
* needed for `oh-my-zsh` module `autojump`
|
||||||
|
|
||||||
```shell
|
```shell
|
||||||
brew install autojump
|
brew install autojump
|
||||||
brew install terminal-notifier
|
brew install terminal-notifier
|
||||||
|
brew install thefuck
|
||||||
```
|
```
|
||||||
|
|
||||||
* install `ls` replacement `exa`
|
* install `ls` replacement `exa`
|
||||||
|
|
@ -41,23 +43,28 @@ macOS
|
||||||
Linux
|
Linux
|
||||||
-----
|
-----
|
||||||
|
|
||||||
|
* install some terminal tools
|
||||||
|
|
||||||
|
```(shell)
|
||||||
|
sudo apt install exa autojump thefuck
|
||||||
|
```
|
||||||
|
|
||||||
* install [Tilex](https://gnunn1.github.io/tilix-web/)
|
* install [Tilex](https://gnunn1.github.io/tilix-web/)
|
||||||
|
|
||||||
```shell
|
```shell
|
||||||
apt install tilix
|
sudo tilix
|
||||||
```
|
```
|
||||||
|
|
||||||
|
* install/configure Tilex colour themes [Grove Box for Tilix](https://github.com/MichaelThessel/tilix-gruvbox)
|
||||||
* install prereqs
|
* install prereqs
|
||||||
* If which zsh not installed, then install with `sudo apt install zsh`. Next, change your login shell with `chsh -s $(which zsh)`
|
* If which zsh not installed, then install with `sudo apt install zsh`. Next, change your login shell with `chsh -s $(which zsh)`
|
||||||
|
|
||||||
* need to install [Nerd Fonts](https://www.nerdfonts.com) (may want other fonts but must be `Nerd` variety)
|
* need to install [Nerd Fonts](https://www.nerdfonts.com) (may want other fonts but must be `Nerd` variety)
|
||||||
* I download [FiraCode](https://github.com/ryanoasis/nerd-fonts/releases/download/v2.3.3/FiraCode.zip), exand, open Nautilus and double-click on each non-Windows font
|
* I download, expand, open Nautilus and double-click on each non-Windows font
|
||||||
* configure Tilix to use the Nerd font
|
* [Hack](https://github.com/ryanoasis/nerd-fonts/releases/download/v2.3.3/Hack.zip)
|
||||||
* install `autojump`
|
* [FiraCode](https://github.com/ryanoasis/nerd-fonts/releases/download/v2.3.3/FiraCode.zip)
|
||||||
|
* [Meslo](https://github.com/ryanoasis/nerd-fonts/releases/download/v2.3.3/Meslo.zip)
|
||||||
```(shell)
|
* configure Tilix to use the Nerd font (I like Hack)
|
||||||
sudo apt install autojump
|
|
||||||
```
|
|
||||||
|
|
||||||
* continue to [Common Install Steps](#common-install-steps)
|
* continue to [Common Install Steps](#common-install-steps)
|
||||||
|
|
||||||
|
|
@ -65,7 +72,7 @@ Windows
|
||||||
-------
|
-------
|
||||||
|
|
||||||
* Install [Windows Terminal](https://github.com/microsoft/terminal)
|
* Install [Windows Terminal](https://github.com/microsoft/terminal)
|
||||||
* Recommend using WSL2 with Ubuntu and zsh installed there, but may be able to use Git Bash
|
* Recommend using WSL2 with Ubuntu and zsh installed there, but may be able to use Git Bash `wsl --install` (in Admin command prompt)
|
||||||
* other steps TBD
|
* other steps TBD
|
||||||
* continue to [Common Install Steps](#common-install-steps)
|
* continue to [Common Install Steps](#common-install-steps)
|
||||||
|
|
||||||
|
|
@ -117,6 +124,7 @@ Common Install Steps
|
||||||
ln -s ~/.oh-my-zsh/templates/starship.toml
|
ln -s ~/.oh-my-zsh/templates/starship.toml
|
||||||
```
|
```
|
||||||
|
|
||||||
|
* install [fzf](https://github.com/junegunn/fzf#installation) for [zsh-interactive-cd](https://github.com/fklassen/ohmyzsh/tree/master/plugins/zsh-interactive-cd) support
|
||||||
* Start a terminal session
|
* Start a terminal session
|
||||||
|
|
||||||
Post install
|
Post install
|
||||||
|
|
|
||||||
|
|
@ -56,4 +56,5 @@ alias :q='exit'
|
||||||
alias ve='vi ~/.vimrc'
|
alias ve='vi ~/.vimrc'
|
||||||
|
|
||||||
# exa vs. ls
|
# exa vs. ls
|
||||||
alias ls='exa'
|
alias ls='exa'
|
||||||
|
alias la='ll -a'
|
||||||
|
|
|
||||||
|
|
@ -17,3 +17,6 @@ success_symbol = '[➜](bold green)' # The 'success_symbol' segment is being set
|
||||||
# Disable the package module, hiding it from the prompt completely
|
# Disable the package module, hiding it from the prompt completely
|
||||||
[package]
|
[package]
|
||||||
disabled = true
|
disabled = true
|
||||||
|
|
||||||
|
# increase command timeout from default 500 milliseconds
|
||||||
|
command_timeout = 1500
|
||||||
|
|
@ -91,9 +91,12 @@ plugins=(
|
||||||
jfrog
|
jfrog
|
||||||
man
|
man
|
||||||
ssh-agent
|
ssh-agent
|
||||||
|
thefuck
|
||||||
tmux
|
tmux
|
||||||
zsh-autosuggestions
|
|
||||||
vscode
|
vscode
|
||||||
|
zsh-autosuggestions
|
||||||
|
zsh-interactive-cd
|
||||||
|
zsh-navigation-tools
|
||||||
)
|
)
|
||||||
|
|
||||||
zstyle :omz:plugins:ssh-agent agent-forwarding yes
|
zstyle :omz:plugins:ssh-agent agent-forwarding yes
|
||||||
|
|
@ -130,5 +133,9 @@ export MANPATH="/usr/local/man:/usr/local/ssl/share/man:$MANPATH"
|
||||||
[ -f /usr/local/etc/profile.d/autojump.sh ] && . /usr/local/etc/profile.d/autojump.sh
|
[ -f /usr/local/etc/profile.d/autojump.sh ] && . /usr/local/etc/profile.d/autojump.sh
|
||||||
ZSH_ALIAS_FINDER_AUTOMATIC=true
|
ZSH_ALIAS_FINDER_AUTOMATIC=true
|
||||||
|
|
||||||
|
if [ $TILIX_ID ] || [ $VTE_VERSION ]; then
|
||||||
|
source /etc/profile.d/vte.sh
|
||||||
|
fi
|
||||||
|
|
||||||
# comment out if you want to disable Starship and use ZSH_THEME
|
# comment out if you want to disable Starship and use ZSH_THEME
|
||||||
eval "$(starship init zsh)"
|
eval "$(starship init zsh)"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue