aboutsummaryrefslogtreecommitdiff
path: root/zsh
AgeCommit message (Collapse)AuthorFilesLines
2018-06-29Break sh noglob guard into two lines for clarityTom Ryder2-2/+4
They're nicer to read this way.
2017-07-05Escape % signs in prompt command outputTom Ryder1-4/+10
The Zsh analogue of fd2b6fd. This one matters a bit more, as e.g. "%test" is a legal Git branch name. A generic fix for this for Korn shell will be tough, as some of them seem to use backslash escape sequences and others don't. None of the prompt commands *should* emit backslashes, and it doesn't allow remote execution, so I might just leave that.
2017-06-19Remove user@ prefix from promptTom Ryder1-2/+2
2017-06-16Allow setting a prompt mode for the shellTom Ryder1-2/+2
2017-03-10Correct two manual referencesTom Ryder1-1/+1
2017-01-27Extend "fallback" prompt a bitTom Ryder1-1/+4
Include username/hostname if no SSH variables
2017-01-25Ignore `unalias` failed call output in zshTom Ryder1-2/+3
zsh 5.0.7 doesn't appear to implement -a for zsh, but 5.2 does
2017-01-25Show prompt prefix if a shell is exoticTom Ryder1-0/+6
That is, include e.g. "ksh:" as a prefix to the prompt if the user appears to have Bash or Zsh (or anything else) as their login shell. This is probably imperfect, but it's a start.
2017-01-25Move Zsh keybinding setup to after ENV sourcingTom Ryder1-3/+3
2017-01-25Clear away all aliases for interactive shellsTom Ryder1-0/+5
Some systems like OpenBSD or Slackware set up well-meaning aliases that I don't want. We do this for Bash, Yash, and Zsh, but not for Ksh, because it looks like its implementations all variously use aliases to implement some POSIX builtins like fc(1) or type(1) in terms of their own builtins.
2017-01-25Be more specific in ref name trimmingTom Ryder1-1/+1
e.g. for a namespaced branch "foo/bar/bar", don't strip the leading part off
2017-01-24Remove SHLVL nested shell feature for nowTom Ryder1-6/+0
Causes a bit too much curliness in configuration; may need a more comprehensive approach.
2017-01-10Add stock Debian Zsh completionTom Ryder1-0/+19
2017-01-06Use `source` not `.` in zshrcTom Ryder1-1/+1
2017-01-03Fix up zshrc a bitTom Ryder1-3/+5
* Move ENV sourcing further up * Don't set HISTSIZE, .shrc does that * Correct copypasta comment from bashrc
2016-12-30Fix a zsh-as-sh/ksh-specific issueTom Ryder1-0/+28
Very niche, but interesting to fix anyway
2016-12-27Tell ShellCheck to ignore an errorTom Ryder1-0/+1
ret actually is assigned, just not in any place ShellCheck could reasonably be expected to find
2016-12-27Realised easy win avoiding subshellsTom Ryder1-11/+2
And also the PROMPT_RETURN fudge in Bash/Zsh
2016-12-22Port keep() to zshTom Ryder1-0/+147
*(N), *.zsh(N) is such a weird syntax
2016-12-21Not as heretical as I thought :(Tom Ryder1-2/+1
2016-12-19Fix extension of zsh subfileTom Ryder1-0/+0
2016-12-19Request version with "ver" shortcut not promptTom Ryder1-0/+4
2016-12-19Inline a file exist-source testTom Ryder1-3/+1
2016-12-19Remove TMUX SHLVL crap from zsh configTom Ryder1-7/+0
2016-12-19Attempt a much saner approach to managing SHLVLTom Ryder1-3/+2
2016-12-17Color Zsh prompt distinctivelyTom Ryder1-1/+1
2016-12-09Port prompt SHLVL behaviour to zshTom Ryder2-0/+14
2016-10-15Correct check of --is-work-tree testTom Ryder1-1/+1
2016-09-20Fork bash prompt changes to zshTom Ryder1-63/+66
2016-09-08Fix an issue (silencing Git prompt errors)Tom Ryder1-1/+1
2016-09-07Restore old code for describing Git prompt commitTom Ryder1-1/+2
I'm really confused. I could have sworn this was working correctly (i.e. the --always option spat out a short reference to the commit as a fallback), but I must have been wrong. Maybe I hadn't installed the appropriate file when I was testing it. At first I thought this was a bug introduced in Git 2.10, but the short-circuit disregarding --always if --exact-match or --candidates=0 is set seems to have been in the `describe` builtin for ages. I must have just tested poorly; I can't see any other explanation in the source. No matter; this isn't much slower.
2016-09-01Port Bash prompt improvements to ZshTom Ryder1-33/+25
2016-08-27Port Bash prompt to ZshTom Ryder2-2/+219
Somewhat naïvely; just quick searches of `man zshall`. I'm sure some of the stuff I removed has analogous features or that they can be implemented.
2016-08-18Drastically limit amount of history keptTom Ryder1-2/+2
Reading really large files seems to be slow in Bash in general, but it's particularly bad in 4.4rc1. I keep encrypted snapshots of my HISTFILE on my home machine, so it's just a little extra step to search them.
2016-08-17Update bashrc/zshrc with POSIX funcs sourceTom Ryder1-0/+3
2016-08-15Instate some actual real zsh configurationTom Ryder2-2/+13
2016-03-28Remove blank lines at end of filesTom Ryder2-2/+0
2016-01-29Whoops, forgot .zprofileTom Ryder1-0/+2
2016-01-27Add Zsh configurationTom Ryder1-0/+2
2012-06-05Well, that was underwhelming.Tom Ryder2-143/+0
2012-06-05Couple more Zsh optionsTom Ryder1-1/+7
2012-06-04Brackets for visual cue that I'm using ZshTom Ryder1-1/+1
2012-06-04Refactor bashrc config for parity with new zshrcTom Ryder2-0/+137
I'm trying out Zshrc for a bit for a future Arabesque article. I've started by just trying to get rough feature parity with my Bash configuration. I've had some moderate success though it's taken quite some time.