No description
Find a file
2013-04-29 13:45:48 +08:00
build_tools Refactored out individual VCS completions. 2013-04-28 14:54:59 +02:00
doc_src miscellaneous typos 2013-04-29 13:45:48 +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 Teach xcode build about $BINDIR 2013-04-20 13:18:51 -07:00
osx Add an icon to fish.app 2013-02-05 21:50:33 -08:00
po remove trialing spaces #2 2010-09-18 10:18:26 +08:00
share Make trap sort of work on OS X 2013-04-28 16:31:25 -07:00
tests Try to fix printf tests on Linux 2013-04-03 18:04:17 -07:00
.gitattributes Added .gitattributes to ignore new build_tools directory from archival 2012-05-10 02:10:39 -07:00
.gitignore Remove xsel from the build 2013-03-30 00:13:44 -07:00
autoload.cpp Make subcommands modify $status, and make builtin_set not modify status unless it fails 2013-01-31 15:57:08 -08:00
autoload.h forward-word should accept a word of an autosuggestion 2012-12-10 16:23:08 -08:00
builtin.cpp Formatting cleanup of builtin_contains 2013-04-28 14:35:00 -07:00
builtin.h Apply new indentation, brace, and whitespace style 2012-11-18 16:30:30 -08:00
builtin_commandline.cpp Fix a sign warning 2013-04-03 18:27:18 -07:00
builtin_complete.cpp Break out COMPLETE_NO_CASE and COMPLETE_REPLACES_TOKEN into separate flags, in preparation for upcoming fuzzy completion work 2013-03-05 20:54:16 -08:00
builtin_jobs.cpp Fix indentation of switch statements 2012-11-19 00:31:03 -08:00
builtin_printf.cpp Fix a comment 2013-04-10 00:12:55 -07:00
builtin_set.cpp print_variables should use ellipsis_char instead of literal ellipsis 2013-04-19 10:24:33 -07:00
builtin_set_color.cpp Fix gettext macro to stop casting everything to wchar_t * (oops) 2013-03-24 15:58:24 -07:00
builtin_test.cpp Update code formatting 2013-03-21 17:44:51 -07:00
builtin_ulimit.cpp Fix indentation of switch statements 2012-11-19 00:31:03 -08:00
CHANGELOG Remove trailing whitespaces and change tabs to spaces 2012-11-18 11:23:22 +01:00
color.cpp First stab at builtin set_color. Moved set_color.cpp to builtin_set_color.cpp and taught fish about it. 2013-02-14 15:52:24 -08:00
color.h First stab at builtin set_color. Moved set_color.cpp to builtin_set_color.cpp and taught fish about it. 2013-02-14 15:52:24 -08:00
common.cpp Teach case-insensitive completions about tildes. Fixes https://github.com/fish-shell/fish-shell/issues/647 2013-04-07 23:54:43 -07:00
common.h Fix gettext macro to stop casting everything to wchar_t * (oops) 2013-03-24 15:58:24 -07:00
complete.cpp Prevent inline destructor of completion_t to reduce compiled code size a bit 2013-04-19 10:24:33 -07:00
complete.h Prevent inline destructor of completion_t to reduce compiled code size a bit 2013-04-19 10:24:33 -07:00
config.guess Update to latest config.sub and config.guess versions 2006-03-02 02:28:21 +10:00
config.sub Update to latest config.sub and config.guess versions 2006-03-02 02:28:21 +10:00
configure.ac Rearrange some macros in configure.ac so that CXXFLAGS can default to -g -O2 again 2013-04-19 10:24:33 -07: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
Doxyfile remove trialing spaces #2 2010-09-18 10:18:26 +08:00
Doxyfile.help Made autoconf stop generating Doxyfile.help in preparation for Xcode documentation build phase 2012-12-26 23:48:11 -08:00
Doxyfile.user remove trialing spaces #2 2010-09-18 10:18:26 +08:00
env.cpp Rely on $PWD instead of getcwd() more often 2013-04-27 00:45:38 -07:00
env.h Rely on $PWD instead of getcwd() more often 2013-04-27 00:45:38 -07:00
env_universal.cpp Mark stdin as nonblocking if we get EWOULDBLOCK, and before handing it off to child processes when either starting them or moving them to the foreground. 2013-04-07 12:40:08 -07:00
env_universal.h Clean up env_var_table_t. Switch from storing var_uni_entry_t* to var_uni_entry_t. Various other cleanups. 2013-02-11 23:16:50 -08:00
env_universal_common.cpp Large set of changes to how PATH is handled. Changed fish to no longer modify PATH in share/config.fish. Introduced variable fish_user_paths, and a glue function __fish_reconstruct_path that splices together PATH with fish_user_paths. Changed fish to no longer validate changes to PATH unless the paths are new (i.e. don't recheck what's already there). Modified certain sets to store const wchar_t instead of wcstring to save a few allocations. 2013-02-19 18:05:20 -08:00
env_universal_common.h Large set of changes to how PATH is handled. Changed fish to no longer modify PATH in share/config.fish. Introduced variable fish_user_paths, and a glue function __fish_reconstruct_path that splices together PATH with fish_user_paths. Changed fish to no longer validate changes to PATH unless the paths are new (i.e. don't recheck what's already there). Modified certain sets to store const wchar_t instead of wcstring to save a few allocations. 2013-02-19 18:05:20 -08:00
event.cpp Reduce compiled code size a bit 2013-04-13 02:00:31 -07:00
event.h Reduce compiled code size a bit 2013-04-13 02:00:31 -07:00
exec.cpp Mark stdin as nonblocking if we get EWOULDBLOCK, and before handing it off to child processes when either starting them or moving them to the foreground. 2013-04-07 12:40:08 -07:00
exec.h remove __warn_unused attribute from exec_subshell 2013-02-06 01:11:46 +01:00
expand.cpp Fix for issue where tab completing an empty string would produce no results 2013-04-21 15:49:45 -07:00
expand.h Formatting 2013-01-12 12:55:23 -08:00
fallback.cpp Fixed compilation by adding missing header libintl.h 2013-04-17 06:41:58 +02:00
fallback.h Hack up dcgettext to try to fix CentOS build 2013-04-08 12:02:43 -07:00
fish.cpp Changed paths.bin to respect BINDIR 2013-04-20 13:18:51 -07:00
fish.spec.in Remove xsel from the build 2013-03-30 00:13:44 -07:00
fish_indent.cpp Remove tok_destroy 2012-11-21 22:14:28 -08:00
fish_pager.cpp Kill termio.h and sys/termios.h 2013-03-05 12:25:00 -08:00
fish_tests.cpp Large set of changes to improve history atomicity on filesystems that do not support locking 2013-04-27 15:21:14 -07:00
fishd.cpp Mark stdin as nonblocking if we get EWOULDBLOCK, and before handing it off to child processes when either starting them or moving them to the foreground. 2013-04-07 12:40:08 -07:00
function.cpp reference'ize event.cpp/h 2012-12-20 16:13:14 +01:00
function.h Apply new indentation, brace, and whitespace style 2012-11-18 16:30:30 -08:00
highlight.cpp Rely on $PWD instead of getcwd() more often 2013-04-27 00:45:38 -07:00
highlight.h Apply new indentation, brace, and whitespace style 2012-11-18 16:30:30 -08:00
history.cpp Large set of changes to improve history atomicity on filesystems that do not support locking 2013-04-27 15:21:14 -07:00
history.h Large set of changes to improve history atomicity on filesystems that do not support locking 2013-04-27 15:21:14 -07:00
input.cpp Eliminate a static string from input_terminfo_get_sequence 2013-04-15 13:07:17 -07:00
input.h Eliminate a static string from input_terminfo_get_sequence 2013-04-15 13:07:17 -07:00
input_common.cpp Mark stdin as nonblocking if we get EWOULDBLOCK, and before handing it off to child processes when either starting them or moving them to the foreground. 2013-04-07 12:40:08 -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 remove trialing spaces #2 2010-09-18 10:18:26 +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 Mark stdin as nonblocking if we get EWOULDBLOCK, and before handing it off to child processes when either starting them or moving them to the foreground. 2013-04-07 12:40:08 -07:00
io.h Support for building with C++11 2013-04-09 14:07:19 -07:00
iothread.cpp Apply new indentation, brace, and whitespace style 2012-11-18 16:30:30 -08:00
iothread.h Apply new indentation, brace, and whitespace style 2012-11-18 16:30:30 -08:00
key_reader.cpp Apply new indentation, brace, and whitespace style 2012-11-18 16:30:30 -08:00
kill.cpp Fix the build (oops) 2013-03-29 18:05:01 -07:00
kill.h Apply new indentation, brace, and whitespace style 2012-11-18 16:30:30 -08:00
lru.h Fix for build errors with g++ 4.0.1 2012-12-11 13:18:40 -08:00
Makefile.in Teach the Makefile to only instruct the user to edit /etc/shells if it needs to be edited 2013-04-27 16:36:35 -07:00
mimedb.cpp Typos 2013-04-14 12:19:56 +05:30
mimedb.h Add header guards to the header files. 2005-10-05 01:11:39 +10:00
output.cpp Kill termio.h and sys/termios.h 2013-03-05 12:25:00 -08:00
output.h First stab at builtin set_color. Moved set_color.cpp to builtin_set_color.cpp and taught fish about it. 2013-02-14 15:52:24 -08:00
parse_util.cpp More cleanup based on static analysis 2013-02-16 02:38:13 -08:00
parse_util.h Apply new indentation, brace, and whitespace style 2012-11-18 16:30:30 -08:00
parser.cpp Additional changes related to https://github.com/fish-shell/fish-shell/pull/592 2013-02-28 10:25:32 -08:00
parser.h Initial set of changes working to make fish robust against running out of file descriptors 2013-01-30 02:22:38 -08:00
parser_keywords.cpp Apply new indentation, brace, and whitespace style 2012-11-18 16:30:30 -08:00
parser_keywords.h Apply new indentation, brace, and whitespace style 2012-11-18 16:30:30 -08:00
path.cpp Rely on $PWD instead of getcwd() more often 2013-04-27 00:45:38 -07:00
path.h Rely on $PWD instead of getcwd() more often 2013-04-27 00:45:38 -07:00
postfork.cpp Cleanup and simplify null_terminated_array_t and its clients 2013-02-22 16:22:56 -08:00
postfork.h Cleanup and simplify null_terminated_array_t and its clients 2013-02-22 16:22:56 -08: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 Add thread assertion to proc_set_last_status 2013-04-07 14:38:57 -07:00
proc.h Fix comments in proc.h (spelling, wording, format) 2013-02-03 09:33:26 +08:00
reader.cpp Rely on $PWD instead of getcwd() more often 2013-04-27 00:45:38 -07:00
reader.h Mark stdin as nonblocking if we get EWOULDBLOCK, and before handing it off to child processes when either starting them or moving them to the foreground. 2013-04-07 12:40:08 -07:00
README.md Added note about how to install ncurses, and what to do on EC2 2013-04-14 13:38:56 -07:00
release_notes.html Updated relnotes 2012-06-05 01:22:25 -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 Kill termio.h and sys/termios.h 2013-03-05 12:25:00 -08:00
screen.h Clean up comments and fix spelling errors 2013-02-20 18:07:38 -08: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
STYLEGUIDE.md Hungary notation -> Hungarian notation 2012-11-19 13:16:50 -08:00
tokenizer.cpp Formatting 2012-12-22 12:21:31 -08:00
tokenizer.h Formatting 2012-12-22 12:21:31 -08:00
user_doc.head.html Re-point some URLs at the fish homepage fishshell.com 2012-12-27 02:17:14 -08: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
wgetopt.cpp Re-point some URLs at the fish homepage fishshell.com 2012-12-27 02:17:14 -08:00
wgetopt.h Re-point some URLs at the fish homepage fishshell.com 2012-12-27 02:17:14 -08:00
wildcard.cpp Fix for reported "out of memory" for filesystems that return -1 as _PC_NAME_MAX 2013-04-26 11:46:49 -07:00
wildcard.h Don't block "hidden files" for wildcard expansions that aren't files (like case) 2013-04-20 12:41:02 -07:00
wutil.cpp Hack up gettext to try to fix CentOS build 2013-04-08 10:20:56 -07:00
wutil.h Mark stdin as nonblocking if we get EWOULDBLOCK, and before handing it off to child processes when either starting them or moving them to the foreground. 2013-04-07 12:40:08 -07:00
xdgmime.cpp Apply new indentation, brace, and whitespace style 2012-11-18 16:30:30 -08:00
xdgmime.h Apply new indentation, brace, and whitespace style 2012-11-18 16:30:30 -08:00
xdgmimealias.cpp Apply new indentation, brace, and whitespace style 2012-11-18 16:30:30 -08:00
xdgmimealias.h Apply new indentation, brace, and whitespace style 2012-11-18 16:30:30 -08:00
xdgmimeglob.cpp Fix indentation of switch statements 2012-11-19 00:31:03 -08:00
xdgmimeglob.h Apply new indentation, brace, and whitespace style 2012-11-18 16:30:30 -08:00
xdgmimeint.cpp Apply new indentation, brace, and whitespace style 2012-11-18 16:30:30 -08:00
xdgmimeint.h Apply new indentation, brace, and whitespace style 2012-11-18 16:30:30 -08:00
xdgmimemagic.cpp Fix warning about realloc in xdgmimemagic 2013-02-16 13:17:43 -08:00
xdgmimemagic.h Apply new indentation, brace, and whitespace style 2012-11-18 16:30:30 -08:00
xdgmimeparent.cpp Apply new indentation, brace, and whitespace style 2012-11-18 16:30:30 -08:00
xdgmimeparent.h Apply new indentation, brace, and whitespace style 2012-11-18 16:30:30 -08:00

fish - the friendly interactive shell

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 are documented at http://ridiculousfish.com/shell/faq.html

Detailed user documentation is available by running help within fish, and also at http://ridiculousfish.com/shell/user_doc/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.

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 libncurses5-dev libncursesw5-dev

on RedHat, CentOS, or Amazon EC2:

sudo yum install ncurses-devel

Packages for Linux

Nightly builds for several Linux distros can be downloaded from http://download.opensuse.org/repositories/home:/siteshwar/

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.