2019-07-29 12:46:10 +03:00
|
|
|
local return_code='%(?..%{$fg[red]%}%? ↵%{$reset_color%})'
|
2018-11-27 16:04:41 +07:00
|
|
|
local current_dir='%{$terminfo[bold]$fg[green]%}%~%{$reset_color%}'
|
2017-02-26 13:30:36 +03:00
|
|
|
local git_branch='$(git_prompt_info)%{$reset_color%}'
|
2019-03-12 20:33:05 +03:00
|
|
|
local firebase_project=%{$fg[cyan]%}'$(node ~/.oh-my-zsh/custom/getFirebaseProject.js $(pwd))'%{$reset_color%}
|
2017-02-26 13:30:36 +03:00
|
|
|
|
2020-04-07 21:36:34 +03:00
|
|
|
PROMPT="${current_dir} ${firebase_project} ${git_branch}
|
2018-11-27 16:04:41 +07:00
|
|
|
$ "
|
2017-02-26 13:30:36 +03:00
|
|
|
RPS1="${return_code}"
|
|
|
|
|
2019-03-17 09:28:54 +03:00
|
|
|
ZSH_THEME_GIT_PROMPT_PREFIX="%{$fg[yellow]%}"
|
|
|
|
ZSH_THEME_GIT_PROMPT_SUFFIX="%{$reset_color%}"
|
2020-04-07 22:05:20 +03:00
|
|
|
|
|
|
|
alias fd="firebase deploy"
|
|
|
|
alias ya="yarn add"
|
|
|
|
alias yr="yarn remove"
|
2020-04-07 22:11:43 +03:00
|
|
|
alias yu="yarn upgrade-interactive --latest"
|
|
|
|
alias webstorm="open -a "WebStorm.app""
|