Skip to content

Instantly share code, notes, and snippets.

@fenykep
Last active August 23, 2024 11:07
Show Gist options
  • Save fenykep/b3f085394b42286682bee2b99242e743 to your computer and use it in GitHub Desktop.
Save fenykep/b3f085394b42286682bee2b99242e743 to your computer and use it in GitHub Desktop.
Small bashrc
alias kod="cd ~/Documents/code"
mdir(){
mkdir -p -- "$1" && cd -P -- "$1"
}
alias diff='diff -u --color=auto'
alias dd="dd status=progress"
alias mkblog="~/Documents/code/blog/blog_back/target/release/blog_back"
sha(){
echo -n "$*" | sha256sum;
}
alias pdftool="~/Downloads/whiteglove/cpdf"
alias aichat="ollama run llama3"
alias prettipls='prettier "$1" | diff "$1" -'
#note(){
# cd ~/Documents/code/codingChallenge
# echo -e "\n" >> notes.txt
# date >> notes.txt
# echo -e "\n" >> notes.txt
# vi + notes.txt
#}
PS1="\[\e[1;37m\]\\$"
PS1+="\[\e[0;92m\]\u\[\e[m\] " # username
PS1+="\[\033[38;5;111m\]@\[\033[38;5;214m\]\h\[\e[m\]" # host
#PS1+=" " # space
#PS1+=">> " # end prompt
PS1+="\[\e[0;95m\]/\W\[\e[m\]" # current directory
PS1+="\[\033[38;5;111m\]>> \[\e[m\]"
export PS1;
export CLICOLOR=1
export LSCOLORS=ExFxBxDxCxegedabagacady
@fenykep
Copy link
Author

fenykep commented Aug 29, 2023

sha schneller

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment