Max terminal with Min work
31. 1. 2021zsh ↓
sudo apt install zsh
chsh -s $(which zsh) # make it default
Restart terminal, select option 2 after relauch, this gives you nice autocompletion already out of the zsh box.
✨ Achievement unlocked: autocompletion, power of raw zsh: repeat 5 echo “woot”
autosuggestions ↓
git clone https://github.com/zsh-users/zsh-autosuggestions ~/.zsh/zsh-autosuggestions
Add this lines to .zshrc
# autosuggestions
# https://github.com/zsh-users/zsh-autosuggestions/blob/master/INSTALL.md#manual-git-clone
source ~/.zsh/zsh-autosuggestions/zsh-autosuggestions.zsh
✨ Achievement unlocked: autosuggestion magic.
starship prompt ↓
a. Configure terminal to use some of the nerd font, I like ‘FantasqueSansMono Nerd Font’.
b. Follow the curl and add the lines to .zshrc again
# starship
eval "$(starship init zsh)"
c. configure starship
cd && mkdir .config
vi starship.toml
and paste
[cmd_duration]
min_time = 10000
✨ Achievement unlocked: Cute prompt for which you wasted very little time and can be used with bash as well.
🙄 In urxvt a lot of special symbols will not display, some creative solutions might be needed, for example to replace lock with some read-only ascii
[directory]
read_only = " read-only"
Other stuff in .zshrc ↓
Add ~/bin to path ↓
# user ~/bin
if [ -d "$HOME/bin" ] ; then
PATH="$HOME/bin:$PATH"
fi
✨ Achievement unlocked: Your scripts in ~/bin will become alive.
fzf (very optional) ↓
# fzf /usr/share/doc/fzf/README.Debian (ctrl+R and ctrl+T)
file="/usr/share/doc/fzf/examples/key-bindings.zsh"
if [ -f "$file" ]; then
source "$file"
fi
and
apt install fzf
✨ Achievement unlocked: EyeCandy with ctrl+R and ctrl+T.
Include .bash_aliases ↓
# .bash_aliases
file="$HOME/.bash_aliases"
if [ -f "$file" ]; then
source "$file"
fi
.bash_aliases
alias ls='ls --color=auto'
alias lst='ls -clhtr'
alias up='sudo apt update && sudo apt full-upgrade -y'
alias mi='mediainfo'
alias htop='htop -C'
alias search='apt-cache search'
alias space2u="rename 's/ /_/g'"
alias dice='echo $(( RANDOM % 6 + 1 ))'
alias clock="tty-clock -C 4 -c -f ''"
alias fd='fdfind'
and
apt install mediainfo htop rename tty-clock fd-find
✨ Achievement unlocked: bash_aliases can be used in bash as well without any changes if needed.
remove bg colors in ls ↓
# remove background colors
LS_COLORS=$LS_COLORS:'tw=00;33:ow=01;34:'; export LS_COLOR
✨ Achievement unlocked: ls readability improved.
min .vimrc ↓
cd && wget https://raw.githubusercontent.com/brontosaurusrex/bucentaur/master/.vimrc
✨ Achievement unlocked: If you vim, then you know what this is.