Christian Höltje
8890450684
This fixes checking for git untracked items
...
The grep expression was incorrect for normal grep. Adding
the `-E` option fixed the escaping of the question marks.
13 years ago
Flavius Aspra
3826c7bf85
allow setting a custom HISTFILE before oh-my-zsh is loaded
13 years ago
Philip Stark
56e835426b
fix git_prompt_status() to not say the repository has untracked files all the time
13 years ago
bertag
72ec24108a
Tweaked parse_git_dirty() in lib/git.zsh to support proper dirty/clean parsing against both git 1.6 and git 1.7+
13 years ago
Thomas Minor
3db22634a1
pipe git version check error to /dev/null (for when git doesn't exist)
13 years ago
Robby Russell
c5ecb4e136
Fixes #1489
...
Revert "Fixed Mac OS X Terminal.app related issue with extra newlines being printed out sometimes"
This reverts commit 8f89d4d5a5 .
13 years ago
MAD
b9a989fea5
Add Stash toogle to display if there's some stash or not in `git_prompt_status`
13 years ago
Trae Robrock
fe094712fb
resolving conflict in termsupport plugin
13 years ago
Alexander Simonov
27841ca7c1
Set default for rvm prompt prefix/suffix
13 years ago
Alexander Simonov
30687c4147
Fix RVM loading and RVM ruby version info
13 years ago
CHH
5b2ca3875a
Improved statistics functions, effect:
...
1 1124 24.6006% c
2 985 21.5583% git
3 343 7.50711% rails
4 328 7.17881% cd
5 314 6.8724% rspec
6 257 5.62486% la
7 197 4.31167% rake
8 154 3.37054% s
9 109 2.38564% ..
10 95 2.07923% rvm
11 68 1.48829% guard
12 36 0.787919% bundle
13 29 0.634712% ssh
14 28 0.612826% pry
15 27 0.590939% open
16 26 0.569052% middleman
17 26 0.569052% gem
18 24 0.525279% rm
19 24 0.525279% heroku
20 23 0.503392% nvm
14 years ago
Felix Dreissig
daa6ecebc1
Set the '-R' option for less not in $PAGER, but as $LESS.
14 years ago
Markus Scherer
43bd46b780
fix title setting bug in xterm and urxvt
...
Before this patch, commands containing %-signs set the title wrong
(urxvt and xterm) [1] and produce strange output in urxvt [2].
test for bug 1:
> sleep 10 && echo %
sets title to "sleep 10 && echo %<<"
> sleep 10 && echo %f
doesn't change the title at all
test for bug 2 (only urxvt):
> echo %f
39m%f
^^^^^----- output
14 years ago
Trae Robrock
a7fb668078
Make rvm prompt function a bit cleaner
14 years ago
Trae Robrock
3d1b788d8a
Fixing the rvm_prompt_info command, now it will not show empty parens if no rvm is currently being used
14 years ago
Yannik Stein
9172b3a89f
fix typo in cd-wrapper
14 years ago
Alexis Letessier
9af7f86299
Correct variable used for global ssh known host completion
14 years ago
Ted Vessenes
027fcccc92
Make git use sha when branch name is missing.
14 years ago
Caio Romão
a3c2a2f6e8
Add branch status support to git_prompt_status
...
This patch makes git_prompt_status support three new status variables:
- ZSH_THEME_GIT_PROMPT_AHEAD
- ZSH_THEME_GIT_PROMPT_BEHIND
- ZSH_THEME_GIT_PROMPT_DIVERGED
With these extra variables it's easy to see (1) if you have commits in
your local branch that weren't pushed to the remote (AHEAD), (2) if
there are commits in the remote that you haven't merged/rebased yet
(BEHIND) or (3) if you have local unpushed commits AND the remote has
some commits you haven't merged yet (DIVERGED).
Refer to the first line displayed on `git status -b --porcelain`.
An example setup in a .zsh-theme file would be:
ZSH_THEME_GIT_PROMPT_AHEAD="↑"
ZSH_THEME_GIT_PROMPT_BEHIND="↓"
ZSH_THEME_GIT_PROMPT_DIVERGED="↕"
14 years ago
Bjarki Ágúst Guðmundsson
75029cda2a
Added a "please" alias for sudo
14 years ago
s3
1bb715965c
Change hardcoded ~/.oh-my-zsh to $ZSH.
14 years ago
Martin Meredith
8ce35df2c5
Add option to disable status notification
...
For certain git repositories, this slows down usage
of the shell horifically.
This option can be set with
git config --add oh-my-zsh.hide-status 1
which will disable checking/showing the status notification
14 years ago
Mat Schaffer
5f72c63136
Don't clobber standard Esc+. behavior
...
Esc+. works as "last arg" on both bash and zsh. Seems like a shame to introduce a new standard.
14 years ago
Jeffrey Dileo
c7105a5341
Disabled title function for emacs term mode
14 years ago
Rotem Yaari
19bf83e17d
Pager is 'less -R' to support colored outputs
14 years ago
Alex Light
d693711f14
made the 'd' alias only show the directories that can be cd'ed to using the number aliases
14 years ago
cruser42
5a5c93b334
Fixed bug introduced when fixing issue 896
14 years ago
Aleksey Orekhov
a9f6aed307
fixed introduced to parse_git_dirty
14 years ago
Aleksey Orekhov
7ea758834b
changed variable PRE_1_7_2_GIT to POST_1_7_2_GIT to make it more accurate
14 years ago
Aleksey Orekhov
dc4d7a92c1
fixed asterisk display for modified repos in git prior to 1.7.2
14 years ago
Darren Clark
8f89d4d5a5
Fixed Mac OS X Terminal.app related issue with extra newlines being printed out sometimes
14 years ago
Carlos Rodriguez
8769e5f8c9
Removed trailing spaces in Git files. Fixes #867
14 years ago
Tadaya Tsuyukubo
52733cb3bb
prompt git-remove as deleted
14 years ago
Gustavo Barron
cb501645d7
Get the Hostname
...
Main library should use ZSH native hostname function
14 years ago
Indrajit Raychaudhuri
0b583638ae
Fix upgrade and uninstall functions to pick up $ZSH value
14 years ago
Kyle Smith
d8521693f4
Added support for entries in /etc/ssh/ssh_known_hosts.
14 years ago
julien@macbook
dd14e075b7
Ignore submodules dirty in prompt info
14 years ago
Daniel Hahler
70e51186ec
Only `setopt correct`, not "correct_all".
...
Using the correct_all option is too distracting, and needs a lot of
`nocorrect` aliases to work around this.
Using only "correct" to correct the command itself is more friendly.
14 years ago
Göran Gustafsson
3fc812afc9
Removed duplicate setting and sorted the remaining
14 years ago
Christian Höltje
40c47a7375
lib/termsupport now uses add-zsh-hook
...
This is needed to play nice with plugins that need various hooks.
15 years ago
Robby Russell
9d67d75b0a
Revert "Enable red dots during completion by default".
...
After a few weeks of using this, I'd prefer this to not be enabled by default. My bad for suggesting that in the first place.
This reverts commit fc49b4a4de .
15 years ago
Loïc Yhuel
fc49b4a4de
Enable red dots during completion by default
15 years ago
Loïc Yhuel
0848acfb25
Display red dots during completion process (disabled by default)
15 years ago
Loïc Yhuel
428f18cf42
Add key bindings for gnome-terminal on Fedora
15 years ago
Sven Lito
eb63ddf6bb
added mac keybinding for backward-delete-char
15 years ago
hobbestigrou
34f00f385c
More generic.
15 years ago
Benjamin Boudreau
cbaa97d8c3
Add utility method to spectrum
15 years ago
Christopher Sexton
a38774c98d
C-x C-e to edit current command in EDITOR
...
The command C-x C-e opens the current command line for editing
in the editor defined by the $EDITOR environment variable.
Thanks to Craig Bosma and his blog post about this:
http://distrustsimplicity.net/articles/zsh-command-editing
15 years ago
Brandon Konkle
6774fb3d59
Minor corrections to deletion detection in git_prompt_status
15 years ago
Andrew Hodges
25adbe81a5
Aliases
...
Modify directory listing aliases to make more sense. Remove conflicting helper
function (mcd conflicts with mtools).
15 years ago