Some usefull stuff for zsh

Hello guys, as I was blown away with how Garuda actually is, I decided to give at least something back to the community, so I am going to share some of the stuff from my .zshrc file that some of you might, hopefully, find useful:

#no duplicates
setopt EXTENDED_HISTORY
setopt HIST_EXPIRE_DUPS_FIRST
setopt HIST_IGNORE_DUPS
setopt HIST_IGNORE_ALL_DUPS
setopt HIST_IGNORE_SPACE
setopt HIST_FIND_NO_DUPS
setopt HIST_SAVE_NO_DUPS
setopt HIST_BEEP

alias update="source ~/.zshrc" #update zshrc after changing something
alias change="kate ~/.zshrc" #open zshrc file with kate

alias ls='ls -F -G --color=auto'
alias ll='ls -lah --color=auto'
alias pbcopy='xclip -selection clipboard'
alias cpwd="pwd | tr -d '\n' | pbcopy && echo 'pwd copied to clipboard'"
alias syslog="sudo journalctl -b -k -n 50 -f | /usr/bin/ccze"
alias bootInfo='echo -e Last boot: last reboot | head -1 | tr -s " " | cut -d " " -f 5-8\nsystemd-analyze| sed "s/ graphical/\nGraphical/g"'
alias chmod7='sudo chmod -R 777'

#make directory and enter it with one command
mkcd () {
mkdir "$1"
cd "$1"
}

If I remember something else useful ill be sure to update post :slight_smile:

4 Likes

5 Likes

haha that's true, however, when developing locally, you might want to use it sometimes, but it can easily be changed to 655, it's just that I like to remove the chance of permissions being the issue when working :smiley: