LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 07-01-2005, 04:18 AM   #1
Henster
Member
 
Registered: Jul 2004
Posts: 45

Rep: Reputation: 15
alias command line arguements


Hi,

I've installed a new text editor called SciTE.

I've got it set up so I can do

%SciTE test.rb
%SciTE temp.txt

and both files will be loaded into tabs into the window (much like kate does) which is great!

But, I cant be bothered to type "SciTE" every time. I;ve aliased it in my .bashrc with

alias s='SciTE&'

But, when I type

%s test.rb

I get:

bash: test.rb: command not found
[1] Done SciTE

How can I make the alias accept my parameter?

Thanks
H
 
Old 07-01-2005, 04:30 AM   #2
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910
Just define a bash-function instead of an alias...



Cheers,
Tink
 
Old 07-01-2005, 04:40 AM   #3
Henster
Member
 
Registered: Jul 2004
Posts: 45

Original Poster
Rep: Reputation: 15
Ah. I'm just loving that...

For anyone that finds this post in the future....

Code:
function s {
SciTE $1 &
}
Cheers
H
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Use for the alias command Metablade Linux - Newbie 4 10-12-2005 06:44 PM
Adding Network Interface alias from command line WireLine Fedora 2 06-09-2005 12:08 AM
alias command zeviddalop Linux - Newbie 3 01-12-2005 10:59 PM
Command to output file content line by line aznluvsmc Programming 2 09-12-2004 08:45 PM
Lost alias line in modules.conf RebootKid Linux - Hardware 5 02-20-2003 06:48 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 02:19 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration