| View previous topic :: View next topic |
| Author |
Message |
john maclean
|
Posted: Fri Aug 22, 2008 11:47 pm Post subject: Drop what you are doing and install fish |
|
|
Not fish and chips but the friendly interactive shell! Coloured tabbed completion. try tar --<tab><tab>
/me weeps!
|
_________________ BLAG 'em up! |
|
 |
jebba
|
Posted: Sat Aug 23, 2008 4:27 am Post subject: |
|
|
| Code: | | freeeee-package most fish |
|
|
|
 |
jebba
|
Posted: Sat Aug 23, 2008 4:28 am Post subject: Re: Drop what you are doing and install fish |
|
|
| john maclean wrote: | | try tar --<tab><tab> |
Just so everyone reads that as written, hit: tar dash dash tab tab
:O
|
|
|
 |
gr00ve
|
Posted: Sat Aug 23, 2008 8:37 am Post subject: |
|
|
very nice and useful to look up all those switches with a single tab instead of man'ning all the time, thanks for the tip.
why the double "-" though it does it for me even with single dash?
also - how to save aliases permanently, because even though they are working once input, upon exit/enter to fish they are not saved?
|
|
|
 |
john maclean
|
Posted: Sat Aug 23, 2008 2:18 pm Post subject: |
|
|
Bash likes to have stuff saved in ~/.bashrc so put your aliases in there ans `source ~/.bashrc` to see them activated immediately within any active shells. If you have lots of aliases then in ~/.bashrc...
| Code: |
if [ -f ~/.bash_aliases ]; then
. ~/.bash_aliases
fi |
and put them in ~/.bash_aliases. Don't edit cat ~/.fishd.`hostname`. Just cat that file with | Code: | | cat ~/.fishd.`hostname` | and you'll see that most of that stuff is automajic. I'm guessing that it's respecting your bash aliases.
|
_________________ BLAG 'em up! |
|
 |
jebba
|
Posted: Sat Aug 23, 2008 2:29 pm Post subject: |
|
|
| john maclean wrote: | Bash likes to have stuff saved in ~/.bashrc so put your aliases in there ans `source ~/.bashrc` to see them activated immediately within any active shells. If you have lots of aliases then in ~/.bashrc...
| Code: |
if [ -f ~/.bash_aliases ]; then
. ~/.bash_aliases
fi |
and put them in ~/.bash_aliases. Don't edit cat ~/.fishd.`hostname`. Just cat that file with | Code: | | cat ~/.fishd.`hostname` | and you'll see that most of that stuff is automajic. I'm guessing that it's respecting your bash aliases. |
I'd be surprised if it respected bash aliases. It doesn't appear to for me. Also:
| Code: | Welcome to fish, the friendly interactive shell
Type help for instructions on how to use fish
jebba@rabelais ~> cat ~/.fishd.`hostname`
cat: /home/jebba/.fishd.`hostname`: No such file or directory
jebba@rabelais ~> bash
rabelais:~$ cat ~/.fishd.`hostname`
cat: /home/jebba/.fishd.rabelais: No such file or directory |
|
|
|
 |
john maclean
|
Posted: Sat Aug 23, 2008 2:36 pm Post subject: |
|
|
Hrm, most odd..
| Code: | [jayeola@acid ~]$ cat ~/.fishd.`hostname`
# This file is automatically generated by the fishd universal variable daemon
# Do NOT edit it directly, your changes will be overwritten
SET fish_pager_color_progress:cyan
SET fish_color_cwd:green
SET fish_color_comment:red
SET fish_color_redirection:normal
SET fish_color_normal:normal
SET fish_color_history_current:cyan
SET CDPATH:.\x1e/home/jayeola
SET fish_pager_color_description:normal
SET fish_color_command:green
SET fish_color_valid_path:--underline
SET fish_color_error:red\x1e--bold
SET fish_color_operator:cyan
SET fish_color_escape:cyan
SET fish_color_search_match:purple
SET fish_pager_color_completion:normal
SET fish_pager_color_prefix:cyan
SET fish_color_match:cyan
SET fish_color_quote:brown |
|
_________________ BLAG 'em up! |
|
 |
jebba
|
Posted: Sat Aug 23, 2008 5:46 pm Post subject: |
|
|
Within `fish` shell:
| Code: | set -x PAGER most
man mplayer |
ahhhh
|
|
|
 |
john maclean
|
Posted: Sat Aug 23, 2008 6:03 pm Post subject: |
|
|
What I really like is...
man<tab> | Code: |
1 (Program section) 6 (Games section) n (New section)
2 (Syscall section) 7 (Misc section) o (Old section)
3 (Library section) 8 (Admin section) p
4 (Device section) 9 (Kernel section) tcl (Tcl section)
5 (File format section) l (Local section) |
man apt<tab>
| Code: | apt (8: Advanced Package Tool)
apt-cache (8: APT package handling utility -- cache manipulator)
apt-cdrom (8: APT CDROM management utility)
apt-config (8: APT Configuration Query program)
apt-get (8: APT package handling utility -- command-line interface)
apt.conf (5: Configuration file for APT)
apt_preferences (5: Preference control file for APT) |
also yum<tab> | Code: |
check-update (Print list of available updates)
clean (Clean up cache directory)
erase (remove the specified packages and packages that depend on them)
generate-rss (Generate rss changelog)
info (List information about available packages)
install (Install the latest version of a package)
list (List information about avaialble packages)
provides (Find package providing a feature or file)
remove (remove the specified packages and packages that depend on them)
search (find packages matching description regexp)
update (Update specified packages (defaults to all packages))
upgrade (Update specified packages including obsoletes (defaults to all packa…)
whatprovides |
|
_________________ BLAG 'em up! |
|
 |
weyasey
|
Posted: Sat Aug 23, 2008 11:45 pm Post subject: |
|
|
Also very informative if you don't add a space before hitting tab.
| Code: |
yum
yum (Yellowdog Updater Modified shell) yum-debug-dump (Executable, 5.1kB)
yum-builddep (Executable, 4.8kB) yum-updatesd (Executable, 9.7kB)
yum-complete-transaction (Executable, 7.…) yumdownloader (Executable, 11kB) |
Very nice application, thanks for the heads up guys :)
|
_________________ If it hurts it's because you're alive. |
|
 |
weyasey
|
Posted: Tue Aug 26, 2008 10:18 pm Post subject: |
|
|
You can have fish start when you open a terminal by adding "fish" to ~/.bashrc but without the ""
|
_________________ If it hurts it's because you're alive. |
|
 |
jebba
|
Posted: Tue Aug 26, 2008 10:55 pm Post subject: |
|
|
| weyasey wrote: | | You can have fish start when you open a terminal by adding "fish" to ~/.bashrc but without the "" |
or even:
|
|
|
 |
|