My terminal emulator is st (simple terminal) from LukeSmith1, and my shell is zsh (with ohmyzsh2).
Dependencies
ohmyzsh
|
|
Then config or restore5 your ~/.zshrc
file.
|
|
colors and themes
p10k
I use powerlevel10k6 as my zsh theme.
- clone the repository:
1 2 3
git clone --depth=1 https://github.com/romkatv/powerlevel10k.git ${ZSH_CUSTOM:-$HOME/.oh-my-zsh/custom}/themes/powerlevel10k # for chinese users, recommend: # git clone --depth=1 https://gitee.com/romkatv/powerlevel10k.git ${ZSH_CUSTOM:-$HOME/.oh-my-zsh/custom}/themes/powerlevel10k
- set
ZSH_THEME="powerlevel10k/powerlevel10k"
in~/.zshrc
. - configure with
p10k
Xresources and pywal
you can define your color scheme in ~/.Xresources
file, and load it with xrdb ~/.Xresources
.
Or you can let pywal generates and sets a colorscheme for you:
|
|
This is a script7 to set my wallpaper and color scheme from an image: wal-feh wallpaper.png
.
And I put exec --no-startup-id ~/bin/wal-feh
in my ~/.config/i3/config
to autostart it.
fzf
Install fzf, then put this in your ~/.zshrc
:
|
|
zsh-autosuggestions
Fish-like fast/unobtrusive autosuggestions for zsh.
-
clone the repository:
1
git clone https://github.com/zsh-users/zsh-autosuggestions ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-autosuggestions
-
add the plugin to the
plugins
list inside the~/.zshrc
file.1 2 3 4
plugins=( # other plugins... zsh-autosuggestions )
keybindings
alt-l
: follow urlsalt-y
: copy urlsalt-o
: copy output of a commandalt-j/k/d/u
: scroll down/up/faster-down/faster-upalt-c/v
: copy/pasteCtrl+t
: list files+folders in current directory (e.g., typegit add
, pressCtrl+t
, select a few files usingTab
, finallyEnter
)Ctrl+r
: search history commandsESC+c
: fuzzy change directory
-
Oh My Zsh is a delightful, open source, community-driven framework for managing your Zsh configuration ↩︎
-
Pywal is a tool that generates a color palette from the dominant colors in an image. ↩︎
-
use
a bare git repositorystow to manage my dotfiles. ↩︎ -
Powerlevel10k is a theme for Zsh. It emphasizes speed, flexibility and out-of-the-box experience. ↩︎