aboutsummaryrefslogtreecommitdiffhomepage
path: root/share/functions/prompt_pwd.fish
Commit message (Collapse)AuthorAge
* Document prompt_pwdGravatar Fabian Homborg2015-12-17
| | | | Fixes #253
* Add ability to customize the amount of path shortening in prompt_pwdGravatar Gary Peck2015-10-26
| | | | Allows the length of each shortened path component to be customized by setting the `fish_prompt_pwd_dir_length` variable to the number of characters to include (plus a leading dot because that's special). Maintains the default behavior of shortening path components to just one character. You can also set `fish_prompt_pwd_dir_length` to an empty or invalid value or 0 to disable shortening completely.
* Remove OSX/Cygwin special cases from prompt_pwdGravatar Fabian Homborg2015-10-09
| | | | | | | | | For cygwin, you can't `cd C:`, so a prompt of "C:/Something" is misleading. For OSX, we dereference symlinks elsewhere This also simplifies prompt_pwd quite a bit.
* prompt_pwd: zero fork prompt in general caseGravatar Ian Ray2015-10-04
| | | | Now only one fork (uname) occurs on first load.
* Match the whole real home directory in prompt_pwd.Gravatar Jonas Hietala2015-08-08
|
* prompt_pwd: Use tilde expansion to get real full home pathGravatar David Adam2014-10-26
| | | | Closes #1133.
* Clean up prompt_pwd with the new function -V flagGravatar Kevin Ballard2014-10-02
| | | | Also fixes `cd /private` displaying as no path on OS X.
* Fix some typos.Gravatar nulltrek2013-09-12
|
* Mac OS X doesn't support uname -o. Use uname instead.Gravatar Konrad Borowski2013-08-16
| | | | | | I break compatibility with Mac OS X again, that I don't have access to. Result: Stuff break, and I have to fix it, so it will perhaps work. At least, I hope it will work.
* Show drive letter under CygwinGravatar Konrad Borowski2013-08-14
| | | | /c/c looks awful, and C:/ is simply better.
* Squashed commit of the following:Gravatar ridiculousfish2013-06-01
| | | | | | | | | | | | | | | | | | | | | commit 5a577d970a293afe320b6c3280c10c2bd8a1ff50 Merge: 908b075 96941b3 Author: ridiculousfish <corydoras@ridiculousfish.com> Date: Sat Jun 1 22:59:16 2013 -0700 Merge branch 'dotdir-two-chars' of git://github.com/GlitchMr/fish-shell into GlitchMr-dotdir-two-chars commit 96941b3a92e5d7e9dd230e4797ee71285700a41f Author: Konrad Borowski <glitchmr@myopera.com> Date: Sat May 25 09:55:43 2013 +0200 Support BSD sed commit 60652c2bd2d1bbce26c90a010913f0f0d8e9365f Author: Konrad Borowski <glitchmr@myopera.com> Date: Sun May 19 10:58:40 2013 +0200 Show first two characters for dotdirs. Fixes #754.
* Make prompt_pwd make a lot more senseGravatar Emily Eisenberg2012-07-06
| | | | | | Remove the case statements, which were handled by the sed blocks anyway Move around the '/' character in the regex, so only one regex is needed Fix a bug where '/' is output as '//'
* Bring prompt_pwd under Darwin to parity with non-DarwinGravatar Kevin Ballard2012-06-24
| | | | | | | The echo command to print the last path segment got a couplel of fixes, but these fixes were only applied to the non-Darwin version. Copy these fixes over to the Darwin version. Notably, this makes `/` stop displaying as `//`.
* Fix prompt_cwd on darwin systems when $PWD is "/private"Gravatar Kevin Ballard2012-06-24
| | | | | | | | | | When $PWD is "/private", the prompt was printing "rivate". Skip the "/private" stripping if there's nothing after it. Prevent "/private" from being stripped anywhere but the beginning of the PWD. Fixes #173
* remove trialing spaces #2Gravatar Grissiom2010-09-18
|
* prompt_pwd broken, this fix by James ReevesGravatar axel2009-02-21
| | | | darcs-hash:20090221104759-ac50b-35f7a896d3e62cd002605d47c090c7bec992317b.gz
* This patch fixes a problem where prompt_pwd was printing the full path twice ↵Gravatar Nick Pilon2008-01-23
| | | | | | under OS X and probably BSDs. (Which, needless to say, made for very long prompts) The problem was that (Free?)BSD sed and GNU sed handle ? differently. For BSD sed, ? is not special unless the -E flag is specified. The {0,1} syntax should work the same way in both. darcs-hash:20080122180340-5b666-21f1cdb835cbfa458a0f3d7344370837db962388.gz
* In prompt_pwd, if a directory name starts with a dot, include first two ↵Gravatar liljencrantz2008-01-17
| | | | | | characters. This patch was written by Denilson F. de Sá darcs-hash:20080116223621-75c98-46f96c9f25d5e32cd10148d35713622e6eac50d7.gz
* Avoid using test command in prompt, makes it slightly fasterGravatar axel2007-09-09
| | | | darcs-hash:20070908191717-ac50b-c2d936bff0e7aead0aecad6aa9e024e63b72fc97.gz
* Make all descriptions for function calls use the implicit translation from ↵Gravatar axel2007-01-16
| | | | | | the previous patch instead of explicitly using N_ darcs-hash:20070116012918-ac50b-c1c0df64333ad910ca81dbc86ad193ece6680722.gz
* Make sure that the / is only printed once in prompt_pwd function when cwd is ↵Gravatar axel2006-07-11
| | | | | | root darcs-hash:20060710223848-ac50b-ddb52c414fd8b08bd7c515c99cc4e05a3c479c7d.gz
* Do gettext translation of descriptions just-in-time internally in fishGravatar axel2006-03-02
| | | | darcs-hash:20060301165347-ac50b-3df9feec60dd9860e0988396d10b550a501f6802.gz
* Redo installation file structure, move lots of things to $PREFIX/share/fishGravatar axel2006-02-17
darcs-hash:20060217101339-ac50b-d93d2c620a4b7f75f05ff461a6edbee001da7613.gz