Last active
May 24, 2024 19:14
-
-
Save openm1ke/84db877bcae418ef26c9830927aabbd3 to your computer and use it in GitHub Desktop.
.zshrc config
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/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