Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
adam.huang
Ohmyzsh
Commits
89d86d86
Commit
89d86d86
authored
Sep 22, 2009
by
James Cox
Browse files
some todo notes, take @chris2's titlebar improvements and poke at completions
parent
7d511379
Changes
4
Hide whitespace changes
Inline
Side-by-side
README.textile
View file @
89d86d86
...
...
@@ -59,3 +59,7 @@ h3. Send us your theme!
I'm hoping to collect a bunch of themes for our command prompts. You can see existing ones in the @themes/@ directory.
h3. Todo from imajes:
* need to make the title bar support git folder
*
\ No newline at end of file
completion.zsh
View file @
89d86d86
## fixme - the load process here seems a bit bizarre
setopt noautomenu
setopt
COMPLETE_IN_WORD
setopt
ALWAYS_TO_END
setopt
complete_in_word
setopt
always_to_end
unsetopt flowcontrol
...
...
@@ -17,9 +19,10 @@ zstyle ':completion:*' matcher-list 'm:{a-zA-Z}={A-Za-z}' 'r:|[._-]=* r:|=*' 'l:
zstyle
':completion:*'
list-colors
''
zstyle
':completion:*'
hosts
$(
sed
's/[, ].*$//'
$HOME
/.ssh/known_hosts
)
unsetopt MENU_COMPLETE
setopt AUTO_MENU
#
unsetopt MENU_COMPLETE
#
setopt AUTO_MENU
# should this be in keybindings?
bindkey
-M
menuselect
'^o'
accept-and-infer-next-history
zstyle
':completion:*:*:*:*:*'
menu
yes
select
...
...
key-bindings.zsh
View file @
89d86d86
...
...
@@ -11,4 +11,24 @@ bindkey "^[[H" beginning-of-line
bindkey
"^[[1~"
beginning-of-line
bindkey
"^[[F"
end-of-line
bindkey
"^[[4~"
end-of-line
bindkey
' '
magic-space
# also do history expansion on space
\ No newline at end of file
bindkey
' '
magic-space
# also do history expansion on space
# consider emacs keybindings:
#bindkey -e ## emacs key bindings
#
#bindkey '^[[A' up-line-or-search
#bindkey '^[[B' down-line-or-search
#bindkey '^[^[[C' emacs-forward-word
#bindkey '^[^[[D' emacs-backward-word
#
#bindkey -s '^X^Z' '%-^M'
#bindkey '^[e' expand-cmd-path
#bindkey '^[^I' reverse-menu-complete
#bindkey '^X^N' accept-and-infer-next-history
#bindkey '^W' kill-region
#bindkey '^I' complete-word
## Fix weird sequence that rxvt produces
#bindkey -s '^[[Z' '\t'
#
\ No newline at end of file
xterms.zsh
View file @
89d86d86
# Specific to xterms, such as OS X terminal
if
[[
"
${
TERM
}
"
==
xterm
*
]]
;
then
unset
TMOUT
precmd
()
{
print
-Pn
"
\0
33]0;%n@%m %~
\0
07"
#print -Pn "\033]0;%n@%m%# %~ %l %w :: %T\a" ## or use this
}
preexec
()
{
print
-Pn
"
\0
33]0;%n@%m <
$1
> %~
\0
07"
#print -Pn "\033]0;%n@%m%# <$1> %~ %l %w :: %T\a" ## or use this
}
fi
\ No newline at end of file
case
"
$TERM
"
in
xterm
*
|
rxvt
*
)
preexec
()
{
print
-Pn
"
\e
]0;%n@%m:
$1
\a
"
# xterm
}
precmd
()
{
print
-Pn
"
\e
]0;%n@%m: %~
\a
"
# xterm
}
;;
screen
*
)
preexec
()
{
local
CMD
=
${
1
[(wr)^(*=*|sudo|ssh|-*)]
}
echo
-ne
"
\e
k
$CMD
\e\\
"
print
-Pn
"
\e
]0;%n@%m:
$1
\a
"
# xterm
}
precmd
()
{
echo
-ne
"
\e
kzsh
\e\\
"
print
-Pn
"
\e
]0;%n@%m: %~
\a
"
# xterm
}
;;
esac
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment