roughed out the new render program in Python, closing #2 as we're not going to support fish
This commit is contained in:
parent
313a2dee99
commit
ca28ca1680
5 changed files with 230 additions and 10 deletions
15
zsh-init
15
zsh-init
|
@ -15,6 +15,19 @@ function strlen {
|
|||
echo ${#PLAIN}
|
||||
}
|
||||
|
||||
function set_title {
|
||||
if [[ ${TERM} == "screen-bce" || ${TERM} == "screen" ]]; then
|
||||
print -Pn "\033k\033${@}\033\134"
|
||||
fi
|
||||
}
|
||||
|
||||
function preexec {
|
||||
local -a cmd
|
||||
cmd=(${(z)1})
|
||||
|
||||
set_title "${PWD}: ${cmd}"
|
||||
}
|
||||
|
||||
function precmd {
|
||||
local CUT OVER_OPTS RAW_DATA LOGIN_PART STATS_PART DATA TOP_LEFT TOP_RIGHT PADDING PADDING_SIZE GIT_BRANCH COLOR
|
||||
set -A OVER_OPTS ${(s. .)OVER_PROMPT_OPTS}
|
||||
|
@ -63,6 +76,8 @@ function precmd {
|
|||
else
|
||||
print -P "\e[5;31m!!! unable to run /usr/share/over-prompt/data\e[0m"
|
||||
fi
|
||||
|
||||
set_title "${PWD}"
|
||||
}
|
||||
|
||||
unset OVER_PROMPT_CFG
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue