mirror of
https://github.com/Matir/skel.git
synced 2026-05-25 21:19:09 -07:00
Merge branch 'master' of https://github.com./Matir/skel
This commit is contained in:
@@ -26,5 +26,5 @@ function verify_dest {
|
|||||||
|
|
||||||
verify_dest "$DEST"
|
verify_dest "$DEST"
|
||||||
|
|
||||||
rsync -Hax --delete --exclude-from="$HOME/.rsync_ignore" \
|
exec nice rsync -Hax --delete --exclude-from="$HOME/.rsync_ignore" \
|
||||||
--delete-excluded "${HOME}/" "$DEST"
|
--delete-excluded "${HOME}/" "$DEST"
|
||||||
|
|||||||
@@ -1,4 +1,8 @@
|
|||||||
# Always load ENV
|
# Always load ENV
|
||||||
test -f "$HOME/.env" && . "$HOME/.env"
|
test -f "$HOME/.env" && . "$HOME/.env"
|
||||||
|
|
||||||
|
# Setup GREP_COLORS
|
||||||
|
export GREP_COLOR='01;31'
|
||||||
|
export GREP_COLORS='mt=01;31:mc=01;31:ms=01;31'
|
||||||
|
|
||||||
test -f "${HOME}/.profile.local" && . "${HOME}/.profile.local"
|
test -f "${HOME}/.profile.local" && . "${HOME}/.profile.local"
|
||||||
|
|||||||
@@ -10,3 +10,4 @@ Downloads
|
|||||||
.sqlite_history
|
.sqlite_history
|
||||||
VirtualBox VMs
|
VirtualBox VMs
|
||||||
Audits
|
Audits
|
||||||
|
SpiderOak Hive
|
||||||
|
|||||||
@@ -1,3 +1,5 @@
|
|||||||
|
# vim: syntax=zsh
|
||||||
|
|
||||||
function prompt_matir_setup {
|
function prompt_matir_setup {
|
||||||
autoload -Uz add-zsh-hook
|
autoload -Uz add-zsh-hook
|
||||||
autoload -Uz vcs_info
|
autoload -Uz vcs_info
|
||||||
@@ -9,6 +11,7 @@ function prompt_matir_setup {
|
|||||||
|
|
||||||
add-zsh-hook precmd prompt_matir_precmd
|
add-zsh-hook precmd prompt_matir_precmd
|
||||||
|
|
||||||
|
# Git related styles
|
||||||
zstyle ':vcs_info:*' enable git
|
zstyle ':vcs_info:*' enable git
|
||||||
zstyle ':vcs_info:*' check-for-changes true
|
zstyle ':vcs_info:*' check-for-changes true
|
||||||
zstyle ':vcs_info:*' formats ' (%b%u%c)'
|
zstyle ':vcs_info:*' formats ' (%b%u%c)'
|
||||||
@@ -16,7 +19,19 @@ function prompt_matir_setup {
|
|||||||
zstyle ':vcs_info:*' unstagedstr '*'
|
zstyle ':vcs_info:*' unstagedstr '*'
|
||||||
|
|
||||||
# TODO: add virtualenv/rvm info
|
# TODO: add virtualenv/rvm info
|
||||||
PROMPT='%{$fg[black]%}[%{$fg[yellow]%}%h%{$fg[black]%}] %{%(!.$fg[red].$fg[green])%}%8>..>%n%>>%{$fg[white]%}@%{$fg[blue]%}%12>..>%m%>>%{$fg[white]%}:%{$fg[green]%}%32<...<%~%<<%{$fg[blue]%}${vcs_info_msg_0_}%{$fg[white]%}%#%{$reset_color%} '
|
PROMPT='%{$fg[black]%}[%{$fg[yellow]%}%h%{$fg[black]%}] ' # History #
|
||||||
|
PROMPT+='%{%(!.$fg[red].$fg[green])%}%8>..>%n%>>%{$fg[white]%}@' # username@
|
||||||
|
PROMPT+='%{$fg[blue]%}%12>..>%m%>>%{$fg[white]%}:' # hostname
|
||||||
|
PROMPT+='%{$fg[green]%}%32<...<%~%<<' # path
|
||||||
|
PROMPT+='%{$fg[blue]%}${vcs_info_msg_0_}' # VCS info
|
||||||
|
PROMPT+='%{$fg[white]%}%#%{$reset_color%} ' # prompt symbol
|
||||||
|
|
||||||
|
# Editor options
|
||||||
|
zstyle ':prezto:module:editor:info:keymap:primary' format ''
|
||||||
|
zstyle ':prezto:module:editor:info:keymap:primary:insert' format 'I'
|
||||||
|
zstyle ':prezto:module:editor:info:keymap:primary:overwrite' format 'O'
|
||||||
|
zstyle ':prezto:module:editor:info:keymap:alternate' format ' [VICMD]'
|
||||||
|
zstyle ':prezto:module:editor:info:completing' format '...'
|
||||||
|
|
||||||
# Rprompt setup
|
# Rprompt setup
|
||||||
local show_return="✘ "
|
local show_return="✘ "
|
||||||
@@ -26,7 +41,8 @@ function prompt_matir_setup {
|
|||||||
fi
|
fi
|
||||||
RPROMPT='%(?:: %{$fg[red]%}'
|
RPROMPT='%(?:: %{$fg[red]%}'
|
||||||
RPROMPT+=${show_return}
|
RPROMPT+=${show_return}
|
||||||
RPROMPT+='%{$reset_color)%}'
|
RPROMPT+='%{$reset_color%})'
|
||||||
|
RPROMPT+='${editor_info[keymap]}'
|
||||||
}
|
}
|
||||||
|
|
||||||
function prompt_matir_precmd {
|
function prompt_matir_precmd {
|
||||||
|
|||||||
@@ -56,6 +56,8 @@ zstyle ':prezto:load' pmodule \
|
|||||||
#
|
#
|
||||||
# Completions
|
# Completions
|
||||||
#
|
#
|
||||||
|
# No groups of completions.
|
||||||
|
zstyle ':completion:*' format ''
|
||||||
|
|
||||||
# Set the entries to ignore in static */etc/hosts* for host completion.
|
# Set the entries to ignore in static */etc/hosts* for host completion.
|
||||||
# zstyle ':prezto:module:completion:*:hosts' etc-host-ignores \
|
# zstyle ':prezto:module:completion:*:hosts' etc-host-ignores \
|
||||||
|
|||||||
@@ -34,7 +34,7 @@ if [[ -s "${ZDOTDIR:-$HOME}/.zprezto/init.zsh" ]]; then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
# .profile is universal
|
# .profile is universal
|
||||||
# but after oh-my-zsh to use anything setup there
|
# but after zprezto to use/override anything setup there
|
||||||
. ~/.profile
|
. ~/.profile
|
||||||
# Deduplicate the path
|
# Deduplicate the path
|
||||||
typeset -U path
|
typeset -U path
|
||||||
|
|||||||
Reference in New Issue
Block a user