mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2025-12-26 02:12:33 +01:00
configuration and cool theme
This commit is contained in:
parent
7ccf4603a5
commit
ffad1a7625
5 changed files with 23 additions and 17 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
|
@ -6,3 +6,4 @@ custom/*
|
||||||
!custom/example.zsh
|
!custom/example.zsh
|
||||||
cache
|
cache
|
||||||
*.swp
|
*.swp
|
||||||
|
.DS_Store
|
||||||
|
|
@ -72,6 +72,7 @@ unsetopt EXTENDED_HISTORY # add timestamps to history
|
||||||
#bindkey '' forward-word
|
#bindkey '' forward-word
|
||||||
|
|
||||||
# ctrl-< and crtrl-> still works
|
# ctrl-< and crtrl-> still works
|
||||||
|
export DISABLE_AUTO_UPDATE=true
|
||||||
|
|
||||||
# rvm, should be at the end of this config file
|
# rvm, should be at the end of this config file
|
||||||
[[ -s "$HOME/.rvm/scripts/rvm" ]] && . "$HOME/.rvm/scripts/rvm" # This loads RVM into a shell session.
|
[[ -s "$HOME/.rvm/scripts/rvm" ]] && . "$HOME/.rvm/scripts/rvm" # This loads RVM into a shell session.
|
||||||
|
|
|
||||||
|
|
@ -1,10 +0,0 @@
|
||||||
function title {
|
|
||||||
if [ "$TAB_TITLE" != "" ];then 1=$TAB_TITLE;fi
|
|
||||||
[ "$DISABLE_AUTO_TITLE" != "true" ] || return
|
|
||||||
if [[ "$TERM" == screen* ]]; then
|
|
||||||
print -Pn "\ek$1:q\e\\" #set screen hardstatus, usually truncated at 20 chars
|
|
||||||
elif [[ "$TERM" == xterm* ]] || [[ $TERM == rxvt* ]] || [[ "$TERM_PROGRAM" == "iTerm.app" ]]; then
|
|
||||||
print -Pn "\e]2;$2:q\a" #set window name
|
|
||||||
print -Pn "\e]1;$1:q\a" #set icon (=tab) name (will override window name on broken terminal)
|
|
||||||
fi
|
|
||||||
}
|
|
||||||
15
themes/rweng.zsh-theme
Normal file
15
themes/rweng.zsh-theme
Normal file
|
|
@ -0,0 +1,15 @@
|
||||||
|
ZSH_THEME_GIT_PROMPT_PREFIX=" %{$fg[green]%}"
|
||||||
|
ZSH_THEME_GIT_PROMPT_SUFFIX="%{$reset_color%}"
|
||||||
|
ZSH_THEME_GIT_PROMPT_DIRTY="%{$fg[red]%} ✘"
|
||||||
|
ZSH_THEME_GIT_PROMPT_CLEAN="%{$fg[green]%} ✔"
|
||||||
|
|
||||||
|
function prompt_char {
|
||||||
|
if [ $UID -eq 0 ]; then echo "%{$fg[red]%}#%{$reset_color%}"; else echo "%{$fg[red]%}⚡"; fi
|
||||||
|
}
|
||||||
|
|
||||||
|
PROMPT='%(?, ,%{$fg[red]%}FAIL: $?%{$reset_color%}
|
||||||
|
)
|
||||||
|
%{$fg[magenta]%}%n%{$reset_color%}@%{$fg[yellow]%}%m%{$reset_color%}: %{$fg_bold[blue]%}%~%{$reset_color%}$(git_prompt_info)
|
||||||
|
%_$(prompt_char) '
|
||||||
|
|
||||||
|
RPROMPT='%{$fg[green]%}[%*]%{$reset_color%}'
|
||||||
13
zshrc
13
zshrc
|
|
@ -3,19 +3,19 @@
|
||||||
[[ -f /etc/profile ]] && . /etc/profile
|
[[ -f /etc/profile ]] && . /etc/profile
|
||||||
|
|
||||||
# Path to your oh-my-zsh configuration.
|
# Path to your oh-my-zsh configuration.
|
||||||
ZSH=$HOME/.oh-my-zsh
|
ZSH=$HOME/.zsh
|
||||||
|
|
||||||
# Set name of the theme to load.
|
# Set name of the theme to load.
|
||||||
# Look in ~/.oh-my-zsh/themes/
|
# Look in ~/.oh-my-zsh/themes/
|
||||||
# Optionally, if you set this to "random", it'll load a random theme each
|
# Optionally, if you set this to "random", it'll load a random theme each
|
||||||
# time that oh-my-zsh is loaded.
|
# time that oh-my-zsh is loaded.
|
||||||
ZSH_THEME="robbyrussell"
|
ZSH_THEME="rweng"
|
||||||
|
|
||||||
# Set to this to use case-sensitive completion
|
# Set to this to use case-sensitive completion
|
||||||
# CASE_SENSITIVE="true"
|
# CASE_SENSITIVE="true"
|
||||||
|
|
||||||
# Comment this out to disable weekly auto-update checks
|
# Comment this out to disable weekly auto-update checks
|
||||||
# DISABLE_AUTO_UPDATE="true"
|
DISABLE_AUTO_UPDATE="true"
|
||||||
|
|
||||||
# Uncomment following line if you want to disable colors in ls
|
# Uncomment following line if you want to disable colors in ls
|
||||||
# DISABLE_LS_COLORS="true"
|
# DISABLE_LS_COLORS="true"
|
||||||
|
|
@ -37,10 +37,9 @@ alias h="dirs -v"
|
||||||
unalias d
|
unalias d
|
||||||
|
|
||||||
RWZSH=$HOME/.zsh
|
RWZSH=$HOME/.zsh
|
||||||
. $RWZSH/config.zsh
|
. $ZSH/config.zsh
|
||||||
. $RWZSH/aliases.zsh
|
. $ZSH/aliases.zsh
|
||||||
. $RWZSH/completion.zsh
|
. $ZSH/completion.zsh
|
||||||
. $RWZSH/functions.zsh
|
|
||||||
|
|
||||||
# use .localrc for settings specific to one system
|
# use .localrc for settings specific to one system
|
||||||
[[ -f ~/.localrc ]] && . ~/.localrc
|
[[ -f ~/.localrc ]] && . ~/.localrc
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue