mirror of
https://github.com/dcarrillo/prezto.git
synced 2024-12-22 17:28:01 +00:00
parent
6233ec6aad
commit
66c14486c6
15
init.zsh
15
init.zsh
@ -41,21 +41,6 @@ zstyle -a ':omz:load' omodule 'omodules'
|
|||||||
omodload "$omodules[@]"
|
omodload "$omodules[@]"
|
||||||
unset omodules
|
unset omodules
|
||||||
|
|
||||||
# Add themes to fpath.
|
|
||||||
fpath=(${0:h}/themes/*(/FN) $fpath)
|
|
||||||
|
|
||||||
# Load and run the prompt theming system.
|
|
||||||
autoload -Uz promptinit && promptinit
|
|
||||||
|
|
||||||
# Load the prompt theme.
|
|
||||||
zstyle -a ':omz:prompt' theme 'prompt_argv'
|
|
||||||
if (( $#prompt_argv > 0 )); then
|
|
||||||
prompt "$prompt_argv[@]"
|
|
||||||
else
|
|
||||||
prompt 'off'
|
|
||||||
fi
|
|
||||||
unset prompt_argv
|
|
||||||
|
|
||||||
# Set environment variables for launchd processes.
|
# Set environment variables for launchd processes.
|
||||||
if [[ "$OSTYPE" == darwin* ]]; then
|
if [[ "$OSTYPE" == darwin* ]]; then
|
||||||
for env_var in PATH MANPATH; do
|
for env_var in PATH MANPATH; do
|
||||||
|
19
modules/prompt/init.zsh
Normal file
19
modules/prompt/init.zsh
Normal file
@ -0,0 +1,19 @@
|
|||||||
|
#
|
||||||
|
# Loads prompt themes.
|
||||||
|
#
|
||||||
|
# Authors:
|
||||||
|
# Sorin Ionescu <sorin.ionescu@gmail.com>
|
||||||
|
#
|
||||||
|
|
||||||
|
# Load and run the prompt theming system.
|
||||||
|
autoload -Uz promptinit && promptinit
|
||||||
|
|
||||||
|
# Load the prompt theme.
|
||||||
|
zstyle -a ':omz:module:prompt' theme 'prompt_argv'
|
||||||
|
if (( $#prompt_argv > 0 )); then
|
||||||
|
prompt "$prompt_argv[@]"
|
||||||
|
else
|
||||||
|
prompt 'off'
|
||||||
|
fi
|
||||||
|
unset prompt_argv
|
||||||
|
|
@ -30,13 +30,13 @@ zstyle ':omz:module:terminal' auto-title 'yes'
|
|||||||
# zstyle ':omz:load' zfunction 'zargs' 'zmv'
|
# zstyle ':omz:load' zfunction 'zargs' 'zmv'
|
||||||
|
|
||||||
# Set the Oh My Zsh modules to load (browse modules).
|
# Set the Oh My Zsh modules to load (browse modules).
|
||||||
zstyle ':omz:load' omodule 'environment' 'terminal' 'editor' \
|
zstyle ':omz:load' omodule 'environment' 'terminal' 'editor' 'completion' \
|
||||||
'completion' 'history' 'directory' 'spectrum' 'alias' 'utility'
|
'history' 'directory' 'spectrum' 'alias' 'utility' 'prompt'
|
||||||
|
|
||||||
# Set the prompt theme to load.
|
# Set the prompt theme to load.
|
||||||
# Setting it to 'random' loads a random theme.
|
# Setting it to 'random' loads a random theme.
|
||||||
# Auto set to 'off' on dumb terminals.
|
# Auto set to 'off' on dumb terminals.
|
||||||
zstyle ':omz:prompt' theme 'sorin'
|
zstyle ':omz:module:prompt' theme 'sorin'
|
||||||
|
|
||||||
# This will make you shout: OH MY ZSHELL!
|
# This will make you shout: OH MY ZSHELL!
|
||||||
source "$OMZ/init.zsh"
|
source "$OMZ/init.zsh"
|
||||||
|
Loading…
Reference in New Issue
Block a user