How can I source my alias?


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting How can I source my alias?
# 1  
Old 09-13-2011
How can I source my alias?

Hi,

I have created few alias's. I want to source them whenever I login. How can I do this? Can I create some "." file like .profile?

Thanks...
# 2  
Old 09-13-2011
If you want to source your file, then source it:
Code:
source ALIASES_FILE

or use the bourne shell compatible synonym:
Code:
. ALIASES_FILE

Add this line to your .profile
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Alias help

I am creating subversion pre commit hook on linux to run on client side but its not working and throwing an error - alias svnbi="plutil *.plist|grep -v OK; if ; then svn ci -m $1 ; fi" but when I run - (test is $1 here) svnbi test bash: syntax error near unexpected token `test' ... (1 Reply)
Discussion started by: jacki
1 Replies

2. UNIX for Dummies Questions & Answers

Create alias files (not alias commands)

If one: $ find -name 'some expression' -type f > newfile and then subsequently wants to create an alias file from each pathname the find command retrieved and the > placed within 'newfile', how would one do this? Ideally, the newly created alias files would all be in one directory. I am... (3 Replies)
Discussion started by: Alexander4444
3 Replies

3. UNIX for Dummies Questions & Answers

alias help

Hello again, what does \!* do int his line alias lookup 'grep -i \!* who.is.who' Thanks! (1 Reply)
Discussion started by: kris888
1 Replies

4. UNIX for Dummies Questions & Answers

alias

i used 'alias' command for a set of daily used long commands. But i noticed they are gone once i log out of the ssh session. Can any one plz let me know if there is a way to set it permanently for my user. (1 Reply)
Discussion started by: pharos467
1 Replies

5. UNIX for Dummies Questions & Answers

Alias Help

Can someone help me with an alias...? (1 Reply)
Discussion started by: NetJones
1 Replies

6. UNIX for Dummies Questions & Answers

alias help

Hi I have a problem when i try to set any thing as alias it works say alias sasa="cd /home/hghgg" but when i close the terminal it does not work (5 Replies)
Discussion started by: shafique
5 Replies

7. Filesystems, Disks and Memory

alias

Hello, I'm trying to create an alias that will show the path name of a current directory when a user cd's into any directory. I have tried the following: alias cd ' cd | pwd ' This just lists the current directory, even when I cd to another directory the alias just lists my home... (6 Replies)
Discussion started by: klannon
6 Replies

8. Shell Programming and Scripting

Alias

how implement functionality alias in the same way as in csh? (use Bourne type sh or bash) (3 Replies)
Discussion started by: sunhata
3 Replies

9. UNIX for Dummies Questions & Answers

Alias

Hello, I'm a beginner to Unix and I want to create an alias that lists the given directory in long format; the alias should use a pager to display the result. Thanks in advance. (2 Replies)
Discussion started by: guelpth
2 Replies
Login or Register to Ask a Question