帖子: 521
注册时间: 2005-03-26 9:38
送出感谢: 0
接收感谢: 0



帖子 freeflying » 2005-04-14 20:56

This How-To will show you how to install and run fish to test out its functionality. If you decide to use fish as your default shell, the last part of this How-To will show you how to make it your default.

Hopefully a few of you will try out fish. I've been using it for about 30 minutes and find that it's very useful for my day-to-day work. While I wouldn't recommend it over bash as a scripting platform, it runs bash scripts without problems and you can easily code bash scripts while working with fish as your shell (that's what the shebang line is for).

Why fish makes an excellent shell for anybody who just wants a better way to use their command line interface:

- Context-aware tab completion ('bunzip {tab}' shows all bz2 archives, cd {tab} shows all directories)
- tab completion shows more info about matching files
- tab completion uses scrollable list for matches. Use arrows to scroll.
- tab completion can complete paramaters for built-in commands (eg. ls -{tab} will show paramaters for the ls command)
- Ctrl-Y pasting and Ctrl-K cutting uses the X Windows clipboard.
- Search command history: type first part of previously run command, then use arrows to scoll through matching commands. Or just use arrows to scroll all commands like in bash.
- Syntax highlighting of commands as you type.

Home page: http://roo.no-ip.org/fish/
Features: http://roo.no-ip.org/fish/user_doc/difference.html

How to install so you can test fish without actually making it your default shell:
- wget http://roo.no-ip.org/fish/files/1.6/fish-1.6-1.i386.rpm
- sudo alien fish-1.6-1.i386.rpm
- sudo dpkg -i fish_1.6-2_i386.deb
- run 'fish' to try it out temporarily (goes away after you close the current terminal window or run 'exit')

How to use fish as your default shell:
- run 'sudo gedit /etc/shells' and add '/usr/local/bin/fish' as a new last line.
- run 'chsh -s /usr/local/bin/fish'.
- logout then back in to make shell change appear. Now every time you open a terminal you will get fish instead of bash.
- You can run 'chsh -s /bin/bash' at any time to make bash your default shell again.

Edit: This how-to converts an RPM to deb out of necessity. I unfortunately wasn't able to get fish to compile on my system, but I have contacted the developer and will include compilation instructions here if the issue gets resolved. Converting the RPM to deb works perfectly, however.
帖子: 2201
注册时间: 2005-04-06 21:15
来自: 安徽黄山
送出感谢: 0
接收感谢: 0

HOW TO:使用fish作为你的shell


帖子 ct » 2005-04-15 15:14


但愿你能试试fish。当我使用它大约半个小时后我 发现它是非常的适合于我每天的工作的。但是我不会把它脱离bash而作为一个脚本平台,她运行bash脚本没有任何的问题,在fish中你能很容易的使用bash代码。

为什么 fish 对于任何想用更好的方式使用命令行和接口的人都是一个杰出的shell:
-Ctrl-Y 粘帖 Ctrl-K 剪切,使用X windows的剪切板

主页: http://roo.no-ip.org/fish/ (这几个网站我是打不开的,想试试都没有机会)
特点: http://roo.no-ip.org/fish/user_doc/difference.html

-wget http://roo.no-ip.org/fish/files/1.6/fish-1.6-1.i386.rpm
-sudo alien fish-1.6-1.i386.rpm
-sudo dpkg -i fish_1.6-2_i386.deb
-运行‘fish’来试用它吧(退出时请关闭终端窗口或输入命令 'exit')

-运行'sudo gedit /etc/shells'并且添加‘/usr/local/bin/fish’到最后一行。
-运行‘chsh -s /usr/local/bin/fish’。
-你能够通过运行‘chsh -s /bin/bash’来将bash重新设为你的默认shell。

上次由 ct 在 2005-04-15 21:40,总共编辑 2 次。
帖子: 10208
注册时间: 2005-03-27 0:06
系统: Ubuntu 12.04
送出感谢: 7 次
接收感谢: 99 次


帖子 oneleaf » 2005-04-15 18:53

帖子: 750
注册时间: 2006-03-19 11:39
送出感谢: 0
接收感谢: 6 次


帖子 kardinal » 2006-06-07 23:04

非常酷 :lol:
帖子: 4160
注册时间: 2005-07-02 14:41
系统: Ubuntu 14.04 (Kylin)
送出感谢: 43 次
接收感谢: 9 次


帖子 millenniumdark » 2006-07-29 0:54


回到 “软件和文档翻译”