Skip to content

DuckzCantFly/zsh-inclass

Repository files navigation

zsh-inclass

To install this config use.

Step 1

Make sure git is installed.

sudo dnf install git neovim fish eza zsh

Step 2

Move old .zshrc.

mv ~/.zshrc ~/.zshrc.old

Step 3

Download new .zshrc.

wget "https://raw.githubusercontent.com/DuckzCantFly/zsh-inclass/main/.zshrc"

Step 4

Move in to zsh shell.

zsh

Step 5

Show default editor

echo $EDITOR

Run e command to open default editor

e

Step 6

Edit the .profile file. add/edit lines

nvim .profile
export EDITOR="nvim"

Step 7

Link .profile to .zprofile

ln .profile $HOME/.zprofile

Exit zsh

exit

Reload .profile

source .profile

Reopen zsh

zsh

Step 8

la
pwd

open .zshrc

e .zshrc

exit nvim

move to plugins dir and list plugins

cd .config/zsh/plugins ; ls

move to zsh-inclass

cd  zsh-inclass ; la

Cat .zshrc

cat .zshrc

Step 9

view contents of source-all.plugin.zsh

e source-all.plugin.zsh

Comment 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.zsh

Un-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.zsh

close and open zsh

exit
zsh

Step 9

Change some default alises

open the config dir using alise cfzp

cfzp

list contents of source all file

cat source-all.plugin.zsh

edit the alises file

e aliasrc/aliasrc.plugin.zsh

change 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

szrc

move to the $HOME dir

cd
pwd

test the new alise

cfzp

Step 10

show your editor

echo $EDITOR

show your cfzp command

which cfzp

Take a screenshot

(Optional) Step 11

Change your user shell to zsh.

chsh /usr/bin/zsh

log out and log back in, zsh should be your new shell, and the new profile file should be loaded by default

(Optional) Step 12

check out my repo for cool linux softewhere! Cool-OSS

About

somthing i am working on for a class

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages