Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
O
oh-my-zsh
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
JIRA
JIRA
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
github
oh-my-zsh
Commits
89d86d86
Commit
89d86d86
authored
Sep 22, 2009
by
James Cox
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
some todo notes, take @chris2's titlebar improvements and poke at completions
parent
7d511379
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
53 additions
and
21 deletions
+53
-21
README.textile
README.textile
+4
-0
completion.zsh
completion.zsh
+7
-4
key-bindings.zsh
key-bindings.zsh
+21
-1
xterms.zsh
xterms.zsh
+21
-16
No files found.
README.textile
View file @
89d86d86
...
@@ -59,3 +59,7 @@ h3. Send us your theme!
...
@@ -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.
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 noautomenu
setopt
COMPLETE_IN_WORD
setopt
complete_in_word
setopt
ALWAYS_TO_END
setopt
always_to_end
unsetopt flowcontrol
unsetopt flowcontrol
...
@@ -17,9 +19,10 @@ zstyle ':completion:*' matcher-list 'm:{a-zA-Z}={A-Za-z}' 'r:|[._-]=* r:|=*' 'l:
...
@@ -17,9 +19,10 @@ zstyle ':completion:*' matcher-list 'm:{a-zA-Z}={A-Za-z}' 'r:|[._-]=* r:|=*' 'l:
zstyle
':completion:*'
list-colors
''
zstyle
':completion:*'
list-colors
''
zstyle
':completion:*'
hosts
$(
sed
's/[, ].*$//'
$HOME
/.ssh/known_hosts
)
zstyle
':completion:*'
hosts
$(
sed
's/[, ].*$//'
$HOME
/.ssh/known_hosts
)
unsetopt MENU_COMPLETE
#
unsetopt MENU_COMPLETE
setopt AUTO_MENU
#
setopt AUTO_MENU
# should this be in keybindings?
bindkey
-M
menuselect
'^o'
accept-and-infer-next-history
bindkey
-M
menuselect
'^o'
accept-and-infer-next-history
zstyle
':completion:*:*:*:*:*'
menu
yes
select
zstyle
':completion:*:*:*:*:*'
menu
yes
select
...
...
key-bindings.zsh
View file @
89d86d86
...
@@ -12,3 +12,23 @@ bindkey "^[[1~" beginning-of-line
...
@@ -12,3 +12,23 @@ bindkey "^[[1~" beginning-of-line
bindkey
"^[[F"
end-of-line
bindkey
"^[[F"
end-of-line
bindkey
"^[[4~"
end-of-line
bindkey
"^[[4~"
end-of-line
bindkey
' '
magic-space
# also do history expansion on space
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
case
"
$TERM
"
in
xterm
*
|
rxvt
*
)
if
[[
"
${
TERM
}
"
==
xterm
*
]]
;
then
preexec
()
{
unset
TMOUT
print
-Pn
"
\e
]0;%n@%m:
$1
\a
"
# xterm
}
precmd
()
{
precmd
()
{
print
-Pn
"
\0
33]0;%n@%m %~
\0
07"
print
-Pn
"
\e
]0;%n@%m: %~
\a
"
# xterm
#print -Pn "\033]0;%n@%m%# %~ %l %w :: %T\a" ## or use this
}
}
;;
screen
*
)
preexec
()
{
preexec
()
{
print
-Pn
"
\0
33]0;%n@%m <
$1
> %~
\0
07"
local
CMD
=
${
1
[(wr)^(*=*|sudo|ssh|-*)]
}
#print -Pn "\033]0;%n@%m%# <$1> %~ %l %w :: %T\a" ## or use this
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
}
}
;;
fi
esac
\ No newline at end of file
\ 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