No description
Find a file
Sanne Wouda fd731fb74f Modify parser to accept 'begin' without ';'
Examples that work as expected (even completions don't get confused):

$ begin true; end;
$ begin if true; end; end
$ begin if true; echo hi; end

The last example correctly expects another 'end' to match 'begin'.

Fixes #1248.
2015-04-13 13:23:59 +08:00
build_tools Don't require .git before running git-describe 2014-10-27 15:46:22 -07:00
doc_src docs: move discussion of fishd file to universal variable section 2015-03-26 10:31:25 +08:00
etc Stomp exit status of initialization scripts so that fish starts out with $status 0 2013-04-09 23:48:03 -07:00
fish.xcodeproj Merge branch 'Integration_2.1.2' 2015-03-11 13:49:06 +08:00
osx Merge branch 'Integration_2.1.2' 2015-03-11 13:49:06 +08:00
po Added Chinese translation. 2014-11-27 14:19:03 +08:00
share Switch back to insert mode after executing a command in vi mode 2015-04-08 10:31:48 -07:00
tests Add a test for issue #1987 2015-04-05 23:47:04 -07:00
.gitattributes Merge branch 'master' into documentation-update 2014-09-07 16:37:31 +01:00
.gitignore .gitignore: fishd is dead 2015-04-12 23:58:55 +08:00
.travis.yml travis: parallel make 2015-03-20 14:53:37 +08:00
autoload.cpp Don't evict autoloaded functions from background threads 2015-03-23 12:31:22 -07:00
autoload.h Run restyle.sh to enforce style rules. 2014-03-31 10:01:39 -07:00
builtin.cpp Revert 1349d12 and properly fix #213 2015-04-06 00:10:55 -07:00
builtin.h Support for command wrapping ("aliases") 2014-08-15 18:14:36 -07:00
builtin_commandline.cpp Clean up some memory allocation in builtin_commandline 2014-10-30 18:52:37 -07:00
builtin_complete.cpp complete: recognise -w short option for --wraps 2014-11-04 23:33:31 +08:00
builtin_jobs.cpp Fix indentation 2014-06-07 23:27:06 -07:00
builtin_printf.cpp Make octal/hex escapes in printf and echo output literal bytes 2015-01-15 11:21:07 -08:00
builtin_set.cpp Update various strings for translation, avoid _ for non-translations 2014-11-25 15:37:30 +08:00
builtin_set_color.cpp use configure to define NOMACROS 2014-12-21 23:38:02 +08:00
builtin_test.cpp Fix some warnings in Linux build 2014-05-31 13:46:28 -07:00
builtin_ulimit.cpp Remove my_wcswidth() in favor of fish_wcswidth() 2014-09-25 18:04:11 -07:00
CHANGELOG Remove trailing whitespaces and change tabs to spaces 2012-11-18 11:23:22 +01:00
color.cpp Solaris build fixes: use memset instead of bzero 2014-12-21 23:38:03 +08:00
color.h Further support for term24bit. Teach output.cpp what to do with it. 2014-09-19 18:45:04 -07:00
common.cpp Fix and add tests for format_long_safe with negative numbers 2015-01-18 16:03:21 -08:00
common.h Add paging into navigating pager 2015-03-20 14:41:38 +08:00
complete.cpp Use natural (digit-sequence-aware) sorting for wildcard expansion 2015-03-23 11:13:26 -07:00
complete.h Use natural (digit-sequence-aware) sorting for wildcard expansion 2015-03-23 11:13:26 -07:00
config.guess Update to latest config.sub and config.guess versions 2013-09-22 15:57:52 +08:00
config.sub Update to latest config.sub and config.guess versions 2013-09-22 15:57:52 +08:00
configure.ac Fix typo in comment. 2015-03-07 08:34:01 +01:00
CONTRIBUTING.md Rename STYLEGUIDE.md to CONTRIBUTING.md, so GitHub would notice it. 2013-07-28 20:49:38 +02:00
COPYING Move LICENSE to COPYING and update text. 2014-10-24 17:40:35 +08:00
create_wajig_completions.py Add the file that generated the wajig completions to the tree. This should not be installed but it should be included with the tarball. The file was written by Reuben Thomas. 2006-11-04 00:26:45 +10:00
Dockerfile math requires bc package 2015-01-22 14:47:28 +08:00
Doxyfile Remove CLANG options, for portability 2014-09-04 11:58:01 +01:00
Doxyfile.help Remove CLANG options, for portability 2014-09-04 11:58:01 +01:00
Doxyfile.user Remove CLANG options, for portability 2014-09-04 11:58:01 +01:00
env.cpp Properly fire events for universal variable changes 2015-02-03 16:13:02 -08:00
env.h Add new functions flag -V/--inherit-variable 2014-10-02 18:41:39 -07:00
env_universal_common.cpp Mark libnotify FDs as CLO_EXEC 2015-01-04 01:21:23 -08:00
env_universal_common.h Replace some std::string with wcstring to reduce copying 2014-11-10 00:06:43 -08:00
event.cpp Rename events and simplify signal event handling 2014-12-29 00:38:11 -08:00
event.h Formatting and style updates 2013-05-05 02:33:17 -07:00
exec.cpp Ignore user-supplied fd redirections above 2 for builtins 2015-01-08 10:44:05 -08:00
exec.h Rework file descriptor handling 2015-01-07 18:07:06 -08:00
expand.cpp Use natural (digit-sequence-aware) sorting for wildcard expansion 2015-03-23 11:13:26 -07:00
expand.h Remove EXPAND_SKIP_PROCESS, which did not actually work 2014-10-15 12:43:06 -07:00
fallback.cpp use configure to define NOMACROS 2014-12-21 23:38:02 +08:00
fallback.h Remove del_curterm workaround on *BSD. 2014-12-08 08:01:03 +08:00
fish.cpp fish.cpp: check for fishd from old version and warn if reachable 2015-04-12 23:58:55 +08:00
fish.pc.in fish.pc: add pkgconfig file for fish 2014-10-01 22:15:24 +08:00
fish_indent.cpp Close <code> before <pre> in fish_indent 2014-12-24 14:17:06 -08:00
fish_tests.cpp Add paging into navigating pager 2015-03-20 14:41:38 +08:00
fish_version.cpp Shorten compilation times 2014-05-01 09:46:27 +02:00
fish_version.h Shorten compilation times 2014-05-01 09:46:27 +02:00
function.cpp Tombstone only when explicitly removing a function. 2015-04-08 10:46:38 -07:00
function.h Revert 1349d12 and properly fix #213 2015-04-06 00:10:55 -07:00
highlight.cpp Teach the highlighter about multiple adjacent square bracket expansions 2014-09-30 11:15:22 -07:00
highlight.h Merge branch 'master' into 1218_rebase 2014-03-29 14:19:45 -07:00
history.cpp Fix tests on FreeBSD 2014-11-01 23:57:12 -07:00
history.h Remove a bunch of dead code identified by cppcheck 2014-10-31 01:15:50 -07:00
input.cpp use configure to define NOMACROS 2014-12-21 23:38:02 +08:00
input.h Rework mode handling of bind 2014-09-22 21:04:06 -07:00
input_common.cpp No need for mbstate_t to be static 2014-09-21 20:47:03 -07:00
input_common.h Use the new input_common_add_callback mechanism to not execute callbacks while signals are blocked. Should fix https://github.com/fish-shell/fish-shell/issues/608 2013-04-03 17:26:02 -07:00
install-sh Update to newer install-sh version 2013-09-22 17:51:48 +08:00
intern.cpp Apply new indentation, brace, and whitespace style 2012-11-18 16:30:30 -08:00
intern.h Apply new indentation, brace, and whitespace style 2012-11-18 16:30:30 -08:00
io.cpp Rework file descriptor handling 2015-01-07 18:07:06 -08:00
io.h Ignore user-supplied fd redirections above 2 for builtins 2015-01-08 10:44:05 -08:00
iothread.cpp Fix intermittent crash in iothread.cpp 2014-09-19 17:01:47 -07:00
iothread.h Use iothread_perform variant that doesn't take a completion callback 2015-01-14 10:05:07 -08:00
key_reader.cpp Squelch some more warnings on Linux 2014-04-27 18:27:34 -07:00
kill.cpp Make escape() return a wcstring 2014-09-25 18:20:03 -07:00
kill.h Apply new indentation, brace, and whitespace style 2012-11-18 16:30:30 -08:00
lexicon_filter.in Tweak lexicon_filter.in for GNU sed 2014-10-01 18:19:38 -07:00
lru.h Don't evict autoloaded functions from background threads 2015-03-23 12:31:22 -07:00
Makefile.in Rewrite of fish_indent 2014-12-23 15:32:01 -08:00
mimedb.cpp Fixes use-after-free issue. 2014-07-06 20:54:19 -07:00
mimedb.h Add header guards to the header files. 2005-10-05 01:11:39 +10:00
output.cpp use configure to define NOMACROS 2014-12-21 23:38:02 +08:00
output.h Include fallback.h in output.h to avoid a compile error 2014-12-23 12:02:09 -08:00
pager.cpp Add paging into navigating pager 2015-03-20 14:41:38 +08:00
pager.h Remove a bunch of dead code identified by cppcheck 2014-10-31 01:15:50 -07:00
parse_constants.h Rewrite of fish_indent 2014-12-23 15:32:01 -08:00
parse_execution.cpp Modify parser to accept 'begin' without ';' 2015-04-13 13:23:59 +08:00
parse_execution.h Don't stop job execution on wildcard errors 2014-10-13 18:51:51 -07:00
parse_productions.cpp Modify parser to accept 'begin' without ';' 2015-04-13 13:23:59 +08:00
parse_productions.h Bringup of function definitions, switch statements with new parser 2013-12-27 03:58:42 -08:00
parse_tree.cpp Tweak comment handling. Mark a parse node with a new flag when it has comments 2014-12-23 10:58:45 -08:00
parse_tree.h Modify parser to accept 'begin' without ';' 2015-04-13 13:23:59 +08:00
parse_util.cpp Fix job_or_process_extent with command substitution 2015-01-17 11:47:42 +01:00
parse_util.h Allow parse_util_detect_errors to treat incomplete strings as errors 2014-07-24 14:41:15 -07:00
parser.cpp Stop blocking signals within job_promote 2014-12-29 00:56:27 -08:00
parser.h Remove a bunch of dead code identified by cppcheck 2014-10-31 01:15:50 -07:00
parser_keywords.cpp Remove a bunch of dead code identified by cppcheck 2014-10-31 01:15:50 -07:00
parser_keywords.h Remove a bunch of dead code identified by cppcheck 2014-10-31 01:15:50 -07:00
path.cpp Remove a bunch of dead code identified by cppcheck 2014-10-31 01:15:50 -07:00
path.h Add a fancy new paths_are_equivalent function to test for equivalent 2013-08-27 18:26:22 -07:00
postfork.cpp Rework file descriptor handling 2015-01-07 18:07:06 -08:00
postfork.h Big fat refactoring of how redirections work. In fish 1.x and 2.0.0, the redirections for a process were flattened into a big list associated with the job, so there was no way to tell which redirections applied to each process. Each process therefore got all the redirections associated with the job. See https://github.com/fish-shell/fish-shell/issues/877 for how this could manifest. 2013-08-19 18:06:24 -07:00
print_help.cpp Apply new indentation, brace, and whitespace style 2012-11-18 16:30:30 -08:00
print_help.h Apply new indentation, brace, and whitespace style 2012-11-18 16:30:30 -08:00
proc.cpp Allow fish to properly exit from job_continue when receiving a signal 2015-02-27 09:56:19 -08:00
proc.h Clean up some job status messages 2014-11-03 10:56:16 -08:00
reader.cpp Make "readahead" text insertion clear the pager 2015-03-23 12:09:16 -07:00
reader.h New -n option for read builtin 2014-09-03 22:48:37 -07:00
README.md Use svg instead of png to get better image quality 2015-01-17 11:42:54 +01:00
release_notes.html Release notes for fish 2.0 2013-05-15 01:02:55 -07:00
sanity.cpp Apply new indentation, brace, and whitespace style 2012-11-18 16:30:30 -08:00
sanity.h Apply new indentation, brace, and whitespace style 2012-11-18 16:30:30 -08:00
screen.cpp use configure to define NOMACROS 2014-12-21 23:38:02 +08:00
screen.h Run restyle.sh to enforce style rules. 2014-03-31 10:01:39 -07:00
signal.cpp Fix for issue where history file would be read immediately on launch 2012-12-04 16:00:35 -08:00
signal.h Fix for issue where history file would be read immediately on launch 2012-12-04 16:00:35 -08:00
tokenizer.cpp Ignore comments for backslash newline 2015-04-05 23:03:24 -07:00
tokenizer.h Ignore comments for backslash newline 2015-04-05 23:03:24 -07:00
utf8.cpp Included missing stdint.h header in utf8.cpp 2014-03-23 15:09:43 +05:30
utf8.h Naive reimplementation of utf2wcs and wcs2utf in 2014-03-23 13:06:24 -07:00
util.cpp Apply new indentation, brace, and whitespace style 2012-11-18 16:30:30 -08:00
util.h Hack around xdm's dumb assumption that the login shell is POSIX compliant so we no longer kill OpenSUSE 2013-01-04 13:09:01 -08:00
wcstringutil.cpp Implement new read --null flag 2014-09-21 19:27:26 -07:00
wcstringutil.h Implement new read --null flag 2014-09-21 19:27:26 -07:00
wgetopt.cpp Properly handle invalid arguments in builtins 2014-07-02 17:04:58 +05:30
wgetopt.h Re-point some URLs at the fish homepage fishshell.com 2012-12-27 02:17:14 -08:00
wildcard.cpp Revert "Prepend ./ to "flag-like file" wildcard expansions and completions" 2014-09-25 22:18:36 -07:00
wildcard.h Revert "Prepend ./ to "flag-like file" wildcard expansions and completions" 2014-09-25 22:18:36 -07:00
wutil.cpp Solaris build fixes: use _sys_errs if available 2014-12-21 23:38:09 +08:00
wutil.h Remove a bunch of dead code identified by cppcheck 2014-10-31 01:15:50 -07:00
xdgmime.cpp Update Free Software Foundation address. 2013-12-13 21:51:52 +01:00
xdgmime.h Update Free Software Foundation address. 2013-12-13 21:51:52 +01:00
xdgmimealias.cpp Update Free Software Foundation address. 2013-12-13 21:51:52 +01:00
xdgmimealias.h Update Free Software Foundation address. 2013-12-13 21:51:52 +01:00
xdgmimeglob.cpp Update Free Software Foundation address. 2013-12-13 21:51:52 +01:00
xdgmimeglob.h Update Free Software Foundation address. 2013-12-13 21:51:52 +01:00
xdgmimeint.cpp Update Free Software Foundation address. 2013-12-13 21:51:52 +01:00
xdgmimeint.h Update Free Software Foundation address. 2013-12-13 21:51:52 +01:00
xdgmimemagic.cpp Update Free Software Foundation address. 2013-12-13 21:51:52 +01:00
xdgmimemagic.h Update Free Software Foundation address. 2013-12-13 21:51:52 +01:00
xdgmimeparent.cpp Update Free Software Foundation address. 2013-12-13 21:51:52 +01:00
xdgmimeparent.h Update Free Software Foundation address. 2013-12-13 21:51:52 +01:00

fish - the friendly interactive shell Build Status

fish is a smart and user-friendly command line shell for OS X, Linux, and the rest of the family. fish includes features like syntax highlighting, autosuggest-as-you-type, and fancy tab completions that just work, with no configuration required.

For more on fish's design philosophy, see the design document.

Quick Start

fish generally works like other shells, like bash or zsh. A few important differences can be found at http://fishshell.com/docs/current/tutorial.html by searching for the magic phrase 'unlike other shells'.

Detailed user documentation is available by running help within fish, and also at http://fishshell.com/docs/current/index.html

Building

fish is written in a sane subset of C++98, with a few components from C++TR1. It builds successfully with g++ 4.2 or later, and with clang. It also will build as C++11.

fish can be built using autotools or Xcode. autoconf 2.60 or later is required.

fish depends on a curses implementation, such as ncurses. The headers and libraries are required for building.

fish requires gettext for translation support.

Building the documentation requires Doxygen 1.8.7 or newer.

Autotools Build

autoconf
./configure
make [gmake on BSD]
sudo make install

Xcode Development Build

  • Build the base target in Xcode
  • Run the fish executable, for example, in DerivedData/fish/Build/Products/Debug/base/bin/fish

Xcode Build and Install

xcodebuild install
sudo ditto /tmp/fish.dst /

Help, it didn't build!

If fish reports that it could not find curses, try installing a curses development package and build again.

On Debian or Ubuntu you want:

sudo apt-get install build-essential ncurses-dev libncurses5-dev gettext

On RedHat, CentOS, or Amazon EC2:

sudo yum install ncurses-devel

Runtime Dependencies

fish requires a curses implementation, such as ncurses, to run.

fish requires a number of utilities to operate, which should be present on any Unix, GNU/Linux or OS X system. These include (but are not limited to) hostname, grep, awk, sed, which, and getopt. fish also requires the bc program.

Translation support requires the gettext program.

Some optional features of fish, such as the manual page completion parser and the web configuration tool, require Python.

In order to generate completions from man pages compressed with either lzma or xz, you may need to install an extra Python package. Python versions prior to 2.6 are not supported. For Python versions 2.6 to 3.2 you need to install the module backports.lzma. How to install it depends on your system and how you installed Python. Most Linux distributions should include it as a package named backports-lzma (or similar). From version 3.3 onwards, Python already includes the required module.

Packages for Linux

Instructions on how to find builds for several Linux distros are at https://github.com/fish-shell/fish-shell/wiki/Nightly-builds

Switching to fish

If you wish to use fish as your default shell, use the following command:

chsh -s /usr/local/bin/fish

chsh will prompt you for your password, and change your default shell.

To switch your default shell back, you can run:

chsh -s /bin/bash

Substitute /bin/bash with /bin/tcsh or /bin/zsh as appropriate.

Contact Us

Questions, comments, rants and raves can be posted to the official fish mailing list at https://lists.sourceforge.net/lists/listinfo/fish-users or join us on our IRC channel #fish at irc.oftc.net.

Found a bug? Have an awesome idea? Please open an issue on this github page.