Closed atiladefreitas closed 3 months ago
Hi, here is a guide from Oh My Zsh: Install and set up zsh as default
Also here is the config you need to do for omakub
preinstalled stuff
edit your ~/.zshrc
after installing zsh
# for zellij autostart
if [[ -z "$ZELLIJ" ]]; then
if [[ "$ZELLIJ_AUTO_ATTACH" == "true" ]]; then
zellij attach -c
else
zellij
fi
if [[ "$ZELLIJ_AUTO_EXIT" == "true" ]]; then
exit
fi
fi
# enable command-not-found if installed
if [ -f /etc/zsh_command_not_found ]; then
. /etc/zsh_command_not_found
fi
# omakub defaults
if command -v zellij &> /dev/null; then
eval "$(zellij setup --generate-auto-start zsh)"
fi
if command -v mise &> /dev/null; then
eval "$(mise activate zsh)"
fi
if command -v zoxide &> /dev/null; then
eval "$(zoxide init zsh)"
fi
export OMAKUB_PATH="/home/$USER/.local/share/omakub"
# File system
alias ls='eza -lh --group-directories-first --icons'
alias lsa='ls -a'
alias lt='eza --tree --level=2 --long --icons --git'
alias lta='lt -a'
alias ff="fzf --preview 'batcat --style=numbers --color=always {}'"
alias fd='fdfind'
alias cd='z'
# Directories
alias ..='cd ..'
alias ...='cd ../..'
alias ....='cd ../../..'
# Tools
alias n='nvim'
alias g='git'
alias d='docker'
alias bat='batcat'
alias lzg='lazygit'
alias lzd='lazydocker'
# Git
alias gcm='git commit -m'
alias gcam='git commit -a -m'
alias gcad='git commit -a --amend'
# Compression
compress() { tar -czf "${1%/}.tar.gz" "${1%/}"; }
alias decompress="tar -xzf"
# Convert webm files generated by the Gnome screenshot video recorder to mp4s that are more compatible
webm2mp4() {
input_file="$1"
output_file="${input_file%.webm}.mp4"
ffmpeg -i "$input_file" -c:v libx264 -preset slow -crf 22 -c:a aac -b:a 192k "$output_file"
}
I would add to this, that in order for you to run Omakub using zsh, you either have to convert it from bash to zsh, or tell zsh to use bash to run it. I exported the path and created an alias to solve this. Hope it helps:
export OMAKUB_PATH="/home/$USER/.local/share/omakub"
alias omakub='bash $OMAKUB_PATH/bin/omakub'
I cant figure out how to change the shell to zsh, someone can help me with this?