mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-05-08 04:34:00 +02:00
Stripping out anything unused in .oh-my-zsh
This commit is contained in:
parent
28d16ade90
commit
ed2ef5a2b0
22 changed files with 22 additions and 595 deletions
|
|
@ -17,8 +17,8 @@ function ace_prompt () {
|
|||
local spade="♤ ";
|
||||
local fill_spade="♠︎ ";
|
||||
|
||||
ref=$(git symbolic-ref HEAD 2> /dev/null);
|
||||
branch=${ref#refs/heads/};
|
||||
local ref=$(git symbolic-ref HEAD 2> /dev/null);
|
||||
local branch=${ref#refs/heads/};
|
||||
|
||||
if [[ ! -z $branch ]]; then
|
||||
if [[ $branch == "master" ]]; then
|
||||
|
|
@ -44,6 +44,8 @@ function ace_prompt () {
|
|||
unset prompt;
|
||||
unset red;
|
||||
unset blue;
|
||||
unset branch;
|
||||
unset ref;
|
||||
unset stop;
|
||||
}
|
||||
|
||||
|
|
@ -53,4 +55,3 @@ function directory () {
|
|||
|
||||
PROMPT=' $(ace_prompt) $(collapse_pwd)
|
||||
> '
|
||||
|
||||
|
|
@ -42,13 +42,10 @@ ZSH_THEME_GIT_PROMPT_UNTRACKED="%{$BG[008]%}%{$fg[black]%} ✰ %{$reset_color%}"
|
|||
#
|
||||
# Convert the home directory to "~"
|
||||
# (Courtesy of Mr. Steve Losh)
|
||||
#෴
|
||||
#
|
||||
|
||||
function collapse_pwd {
|
||||
echo $(pwd | sed -e "s,^$HOME,~,")
|
||||
}
|
||||
|
||||
#
|
||||
# Some Special Characters if you want to swap out the prompts
|
||||
# -----------------------------------------------------------
|
||||
# ✰ ✼ ✪ ✙ ♔ ♘ ♜ ♛ ♚ ♞ ♬ ⏀ ⌦ ⌘ ≫ ⇪ ☩ ☀ ☂ ★ ⚓ Ө β δ Σ Ω μ Δ ↪
|
||||
# ✰ ✼ ✪ ✙ ♔ ♘ ☩ ★
|
||||
|
|
|
|||
|
|
@ -1,54 +0,0 @@
|
|||
#
|
||||
# Available Color Options are :
|
||||
#
|
||||
# red, green, blue, cyan, magenta, yellow, white, black
|
||||
#
|
||||
# Reference to what stuff in the Prompt is:
|
||||
# %n = username
|
||||
# %~ = pwd
|
||||
# %m = machine name
|
||||
#
|
||||
|
||||
# $FG[025] - dark blue
|
||||
# $FG[050] - cyan
|
||||
# $FG[075] - light blue
|
||||
# $FG[100] - muddy yellow
|
||||
# $FG[125] - strawberry
|
||||
# $FG[145] - white
|
||||
|
||||
PROMPT='%{$BG[237]%}%{$fg[white]%} $(hostname) \
|
||||
%{$BG[008]%}%{$fg[white]%} $(collapse_pwd) \
|
||||
%{$BG[056]%}%{$fg[white]%}$(git_prompt_short_sha)\
|
||||
%{$BG[093]%}%{$fg[white]%}$(git_prompt_info)\
|
||||
%{$reset_color%}$(git_prompt_status)
|
||||
%{$reset_color%}> '
|
||||
|
||||
ZSH_THEME_GIT_PROMPT_SHA_BEFORE=" "
|
||||
ZSH_THEME_GIT_PROMPT_SHA_AFTER=" "
|
||||
ZSH_THEME_GIT_PROMPT_PREFIX=" ⑀ "
|
||||
ZSH_THEME_GIT_PROMPT_SUFFIX=""
|
||||
ZSH_THEME_GIT_PROMPT_DIRTY=" %{$bg[yellow]%}%{$fg[black]%} ⸭ "
|
||||
ZSH_THEME_GIT_PROMPT_CLEAN="%{$fg[white]%} ☩ "
|
||||
|
||||
# RPROMPT='$(git_prompt_status) %{$reset_color%}'
|
||||
|
||||
ZSH_THEME_GIT_PROMPT_ADDED="%{$BG[010]%}%{$fg[black]%} ✰ %{$reset_color%}"
|
||||
ZSH_THEME_GIT_PROMPT_MODIFIED="%{$BG[012]%}%{$fg[black]%} ✰ %{$reset_color%}"
|
||||
ZSH_THEME_GIT_PROMPT_DELETED="%{$BG[009]%}%{$fg[black]%} ✰ %{$reset_color%}"
|
||||
ZSH_THEME_GIT_PROMPT_RENAMED="%{$BG[011]%}%{$fg[black]%} ✰ %{$reset_color%}"
|
||||
ZSH_THEME_GIT_PROMPT_UNMERGED="%{$BG[014]%}%{$fg[black]%} ✰ %{$reset_color%}"
|
||||
ZSH_THEME_GIT_PROMPT_UNTRACKED="%{$BG[008]%}%{$fg[black]%} ✰ %{$reset_color%}"
|
||||
|
||||
#
|
||||
# Convert the home directory to "~"
|
||||
# (Courtesy of Mr. Steve Losh)
|
||||
#෴
|
||||
|
||||
function collapse_pwd {
|
||||
echo $(pwd | sed -e "s,^$HOME,~,")
|
||||
}
|
||||
|
||||
#
|
||||
# Some Special Characters if you want to swap out the prompts
|
||||
# -----------------------------------------------------------
|
||||
# ✰ ✼ ✪ ✙ ♔ ♘ ♜ ♛ ♚ ♞ ♬ ⏀ ⌦ ⌘ ≫ ⇪ ☩ ☀ ☂ ★ ⚓ Ө β δ Σ Ω μ Δ ↪
|
||||
Loading…
Add table
Add a link
Reference in a new issue