aboutsummaryrefslogtreecommitdiffhomepage
path: root/share/functions/cd.fish
Commit message (Collapse)AuthorAge
* add `function --shadow-builtin` flagGravatar Kurtis Rader2016-05-14
| | | | | | | | | | | | | | It's currently too easy for someone to bork their shell by doing something like `function test; return 0; end`. That's obviously a silly, contrived, example but the point is that novice users who learn about functions are prone to do something like that without realizing it will bork the shell. Even expert users who know about the `test` builtin might forget that, say, `pwd` is a builtin. This change adds a `--shadow-builtin` flag that must be specified to indicate you know what you're doing. Fixes #3000
* fix the style of several functionsGravatar Kurtis Rader2016-05-08
| | | | | | I'm going to modify these functions as part of dealing with issue #3000 and don't want those changes to be masked by running the files through `make style`.
* limit size of cd history to 25 directoriesGravatar Kurtis Rader2016-03-23
| | | | | | | | | | | | | | | The existing implementation grows the $dirprev array without bounds. Besides causing what would appear to be a memory leak it also makes the nextd and prevd commands more expensive than they need to be. It also makes it harder to create a useful "menu" cd command. In addition to implementing a reasonable limit on the size of the $dirprev array I've reformatted the code using fish_indent. Update the documentation to include mentions of the $dirprev and $dirnext variables as well as the limit on how much directory history is kept. Fixes 2836
* remove trialing spaces #2Gravatar Grissiom2010-09-18
|
* Fix cd function to handle empty variables correctly. Patch by Sven Axelsson.Gravatar axel2009-02-02
| | | | darcs-hash:20090201222058-ac50b-31a7ee2db9f68729c21ba153e1439cbeabff84ce.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
* Update function wrapper for cd builtin, make sure a local variable is usedGravatar axel2006-06-17
| | | | darcs-hash:20060617131145-ac50b-1cef97b5e774713f659962b7e33f889be3081a3d.gz
* Fix a bug in the function wrapper around the 'cd' builtin that caused cd to ↵Gravatar axel2006-06-17
| | | | | | sometimes return with a non-zero exit status even though the command did not fail darcs-hash:20060616151848-ac50b-001698980eca6fadf9e470d829a532c305c84e38.gz
* Avoid using the pwd command in favour of the $PWD variable, since the pwd ↵Gravatar axel2006-05-29
| | | | | | command does not seem to work well with fuse darcs-hash:20060529130753-ac50b-0d32fe0924dbf9e83520d26402e9daae77789419.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