Skip to content

Instantly share code, notes, and snippets.

@openm1ke
Last active May 24, 2024 19:14
Show Gist options
  • Select an option

  • Save openm1ke/84db877bcae418ef26c9830927aabbd3 to your computer and use it in GitHub Desktop.

Select an option

Save openm1ke/84db877bcae418ef26c9830927aabbd3 to your computer and use it in GitHub Desktop.
.zshrc config
#!/usr/bin/env bash
DIRECTORY=$"/Users/$(whoami)/goinfre/Homebrew"
rm -rf $DIRECTORY
echo $DIRECTORY
git clone https://github.com/Homebrew/brew $DIRECTORY
eval "$($DIRECTORY/bin/brew shellenv)" >> "/Users/$(whoami)/.zprofile"
source "/Users/$(whoami)/.zprofile"
echo 'export PATH="/opt/goinfre/$(whoami)/.brew/bin:$PATH"' >> ~/.zshrc
brew update --force --quiet
chmod -R go-w "$(brew --prefix)/share/zsh"
alias ll="ls -halF"
alias gs="git status"
function gb() { git branch --no-color 2> /dev/null | sed -e "/^[^*]/d" -e "s/* \(.*\)/${USER_BRANCH} \1/"; }
# USER_BRANCH="๐ŸŒฑ"
# USER_WATCH="โŒš"
# USER_FOLDER="๐Ÿ“"
# USER_PROMT="๐Ÿ’ป"
# PS1='\[\e[38;5;218;1m\]โ”${USER_WATCH} \[\e[38;5;176m\]\t\[\e[0m\]\[\e[38;5;183;1m\] $(gb)\[\e[0m\]${USER_FOLDER} \[\e[38;5;111;1m\]\w\n\[\e[38;5;218m\]โ”—\[\e[38;5;219m\]${USER_PROMT}\[\e[0m\] '
USER_BRANCH=" ๐Ÿ’€"
USER_WATCH="๐Ÿ•ฏ๏ธ "
USER_FOLDER=" ๐Ÿ•ธ๏ธ "
USER_PROMT="๐ŸŽƒ"
PS1='\[\e[38;5;124m\]โ”${USER_WATCH}\[\e[38;5;160;1m\]\t\[\e[0;38;5;220m\]$(gb)\[\e[0m\]${USER_FOLDER}\[\e[38;5;202;1m\]\w\n\[\e[0;38;5;124m\]โ”—\[\e[0m\]${USER_PROMT}\[\e[0m\] '
# USER_BRANCH=" ๐ŸŽ„"
# USER_WATCH="๐Ÿ”ฎ "
# USER_FOLDER="โ„๏ธ "
# USER_PROMT="โ˜ƒ๏ธ "
# PS1='\[\e[38;5;24m\]โ”${USER_WATCH}\[\e[38;5;32;1m\]\t\[\e[0;38;5;75m\]$(gb)\[\e[0m\]${USER_FOLDER}\[\e[38;5;117;1m\]\w\n\[\e[0;38;5;25m\]โ”—\[\e[0m\]${USER_PROMT}\[\e[0m\] '
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment