BLAG

BLAG Forums
It is currently Fri Dec 19, 2014 3:15 am

All times are UTC




Post new topic Reply to topic  [ 12 posts ] 
Author Message
PostPosted: Fri Aug 22, 2008 11:47 pm 
Offline
Site Admin

Joined: Wed Mar 17, 2004 6:17 pm
Posts: 1340
Location: London, UK
Not fish and chips but the friendly interactive shell! Coloured tabbed completion. try tar --<tab><tab>

/me weeps!

_________________
BLAG 'em up!


Top
 Profile  
 
 Post subject:
PostPosted: Sat Aug 23, 2008 4:27 am 
Offline
Site Admin

Joined: Sun Mar 14, 2004 3:17 pm
Posts: 4492
Location: Loveland, Colorado, USA
Code:
freeeee-package most fish


Top
 Profile  
 
PostPosted: Sat Aug 23, 2008 4:28 am 
Offline
Site Admin

Joined: Sun Mar 14, 2004 3:17 pm
Posts: 4492
Location: Loveland, Colorado, USA
john maclean wrote:
try tar --<tab><tab>


Just so everyone reads that as written, hit: tar dash dash tab tab

:O


Top
 Profile  
 
 Post subject:
PostPosted: Sat Aug 23, 2008 8:37 am 
Offline

Joined: Mon Mar 27, 2006 11:05 pm
Posts: 286
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?


Top
 Profile  
 
 Post subject:
PostPosted: Sat Aug 23, 2008 2:18 pm 
Offline
Site Admin

Joined: Wed Mar 17, 2004 6:17 pm
Posts: 1340
Location: London, UK
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!


Top
 Profile  
 
 Post subject:
PostPosted: Sat Aug 23, 2008 2:29 pm 
Offline
Site Admin

Joined: Sun Mar 14, 2004 3:17 pm
Posts: 4492
Location: Loveland, Colorado, USA
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


Top
 Profile  
 
 Post subject:
PostPosted: Sat Aug 23, 2008 2:36 pm 
Offline
Site Admin

Joined: Wed Mar 17, 2004 6:17 pm
Posts: 1340
Location: London, UK
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!


Top
 Profile  
 
 Post subject:
PostPosted: Sat Aug 23, 2008 5:46 pm 
Offline
Site Admin

Joined: Sun Mar 14, 2004 3:17 pm
Posts: 4492
Location: Loveland, Colorado, USA
Code:
yum install most


Within `fish` shell:
Code:
set -x PAGER most
man mplayer



ahhhh


Top
 Profile  
 
 Post subject:
PostPosted: Sat Aug 23, 2008 6:03 pm 
Offline
Site Admin

Joined: Wed Mar 17, 2004 6:17 pm
Posts: 1340
Location: London, UK
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!


Top
 Profile  
 
 Post subject:
PostPosted: Sat Aug 23, 2008 11:45 pm 
Offline

Joined: Wed Jun 16, 2004 9:54 pm
Posts: 193
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.


Top
 Profile  
 
 Post subject:
PostPosted: Tue Aug 26, 2008 10:18 pm 
Offline

Joined: Wed Jun 16, 2004 9:54 pm
Posts: 193
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.


Top
 Profile  
 
 Post subject:
PostPosted: Tue Aug 26, 2008 10:55 pm 
Offline
Site Admin

Joined: Sun Mar 14, 2004 3:17 pm
Posts: 4492
Location: Loveland, Colorado, USA
weyasey wrote:
You can have fish start when you open a terminal by adding "fish" to ~/.bashrc but without the ""


or even:

Code:
chsh


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 12 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 0 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group