To install this config use.
Make sure git is installed.
sudo dnf install git neovim fish eza zshMove old .zshrc.
mv ~/.zshrc ~/.zshrc.old
Download new .zshrc.
wget "https://raw.githubusercontent.com/DuckzCantFly/zsh-inclass/main/.zshrc"Move in to zsh shell.
zshShow default editor
echo $EDITORRun e command to open default editor
eEdit the .profile file. add/edit lines
nvim .profileexport EDITOR="nvim"Link .profile to .zprofile
ln .profile $HOME/.zprofileExit zsh
exitReload .profile
source .profileReopen zsh
zshlapwdopen .zshrc
e .zshrcexit nvim
move to plugins dir and list plugins
cd .config/zsh/plugins ; lsmove to zsh-inclass
cd zsh-inclass ; laCat .zshrc
cat .zshrcview contents of source-all.plugin.zsh
e source-all.plugin.zshComment out prompt I use line
# Prompt I use
source ${ZPLUGINDIR}/zsh-inclass/prompt/prompt.plugin.zsh\/ \/
# Prompt I use
# source ${ZPLUGINDIR}/zsh-inclass/prompt/prompt.plugin.zshUn-comment out prompt the Powerline10k code
# Powerline10k
## pretty prompt
if [ ! -d ${ZPLUGINDIR}/powerlevel10k ]; then
git clone --quiet "https://github.com/romkatv/powerlevel10k" "${ZPLUGINDIR}/powerlevel10k"
fi
# source ${ZPLUGINDIR}/powerlevel10k/powerlevel10k.zsh-theme
# Enable vi-mode with enhancements
# source ${ZPLUGINDIR}/zsh-inclass/vi-mode/vi-mode.plugin.zsh
# To customize prompt, run `p10k configure` or edit ~/.p10k.zsh.
# [[ ! -f ${ZDOTDIR:-${HOME}}/.p10k.zsh ]] || source ${ZDOTDIR:-${HOME}}/.p10k.zsh\/ \/
# Powerline10k
## pretty prompt
if [ ! -d ${ZPLUGINDIR}/powerlevel10k ]; then
git clone --quiet "https://github.com/romkatv/powerlevel10k" "${ZPLUGINDIR}/powerlevel10k"
fi
source ${ZPLUGINDIR}/powerlevel10k/powerlevel10k.zsh-theme
# Enable vi-mode with enhancements
# source ${ZPLUGINDIR}/zsh-inclass/vi-mode/vi-mode.plugin.zsh
# To customize prompt, run `p10k configure` or edit ~/.p10k.zsh.
[[ ! -f ${ZDOTDIR:-${HOME}}/.p10k.zsh ]] || source ${ZDOTDIR:-${HOME}}/.p10k.zsh(optional) move default .p10.zsh to the home folder
cp .p10k.zsh $HOME/.p10k.zshclose and open zsh
exitzshChange some default alises
open the config dir using alise cfzp
cfzplist contents of source all file
cat source-all.plugin.zshedit the alises file
e aliasrc/aliasrc.plugin.zshchange lines
# Shortcuts
alias \
cfz="e ${ZDOTDIR:-$HOME}/.zshrc"\
cfzp="cd ${ZPLUGINDIR}/zsh-inclass ; ls"\\/ \/
# Shortcuts
alias \
cfz="e ${ZDOTDIR:-$HOME}/.zshrc"\
cfzp="cd ${ZPLUGINDIR}/zsh-inclass ; e ."\save file and reload zsh
szrcmove to the $HOME dir
cdpwdtest the new alise
cfzpshow your editor
echo $EDITORshow your cfzp command
which cfzpTake a screenshot
Change your user shell to zsh.
chsh /usr/bin/zshlog out and log back in, zsh should be your new shell, and the new profile file should be loaded by default
check out my repo for cool linux softewhere! Cool-OSS