Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 

zsh Configuration

Table of Contents

Installation

This configuration should reside in your respective home directory only, not in /etc. The only file required to be in your home directory is the .zshenv, which sets the ZDOTDIR variable.

cd ~

# Step 1: Backup...
backupdir=_backup/$(datetag)-zsh
mkdir -p "$backupdir"
find . -maxdepth 1 -iname ".z*" -type l -exec mv {} "$backupdir" \;
cp .z* "$backupdir"

# Step 2: Install
[[ -f .zshenv ]] || ln -s ~/_dotfiles/zsh/.zshenv

mkdir -p ~/.config/zsh
while IFS= read -r -d $'\0' target ; do
    link=~/.config/zsh/$(basename "$target")
    echo "$link" "->" "$target"
    rm -rf "$link"
    ln -s -t ~/.config/zsh "$target"
done < <(
    find ~/_dotfiles/zsh/zdotdir -mindepth 1 -maxdepth 1 -print0 | sort -z
)

# See https://github.com/mattmc3/zephyr/tree/main/plugins/zfunctions
# We might want to add this to _dotfiles later...
mkdir .config/zsh/functions

# Step 3: Restore history
mkdir -p ~/.local/share/zsh
mv .zsh_history .local/share/zsh/zsh_history

# Configure to taste
p10k configure

TODO

  • Try https://starship.rs/

  • Incorporate stuff from plugins/todo (old grml stuff)

  • Fix laggy typing …​ probably syntax highlighting?