Skip to content

Instantly share code, notes, and snippets.

@madprops
Last active December 10, 2022 02:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save madprops/6cfe0c62cdfad91368ab70b89429b1e4 to your computer and use it in GitHub Desktop.
Save madprops/6cfe0c62cdfad91368ab70b89429b1e4 to your computer and use it in GitHub Desktop.
autoload -U colors && colors
PS1="%{$fg[green]%}%d%{$reset_color%} %{$fg[blue]%}$%{$reset_color%} "
source ~/.zsh/zsh-autosuggestions/zsh-autosuggestions.zsh
bindkey "^[[H" beginning-of-line
bindkey "^[[F" end-of-line
bindkey "^[[3~" delete-char
alias get="sudo pacman -S"
alias update="sudo pacman -Syy"
alias upgrade="yay && flatpak update"
alias sauce="source ~/.zshrc"
alias rm="rm -I"
alias gitclone="git clone --depth 1"
alias flatget="flatpak --installation=extra install"
alias flatremove="flatpak --installation=extra uninstall"
alias flatclean="flatpak --installation=extra uninstall --unused"
alias flatrun="flatpak --installation=extra run"
alias aurinstalled="pacman -Qqm"
alias d="dolphin ."
alias getaudio="yt-dlp --extract-audio --audio-format mp3"
alias dirsize="du -sh"
function z {
local p=$(ezkl jump "$1")
if [[ -n "$p" ]]; then
cd "$p"
if [ $? -ne 0 ]; then
ezkl forget "$p"
fi
fi
}
function zz {
ezkl remember
}
function zzz {
ezkl forget
}
function h {
history | grep "$1"
}
function p {
ps aux | grep "$1"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment