LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 07-30-2003, 02:12 AM   #1
koyi
Member
 
Registered: Jul 2003
Location: Osaka, Japan
Distribution: Arch, Ubuntu
Posts: 421

Rep: Reputation: 31
.bashrc not sourced


I have created ~/.bashrc with the following commands:

alias la='ls -a'
alias ll='ls -l'
alias ..='cd ..'

I signed out and the signed in again but the aliases are not available. Also, I started up KDE and opened konsole, hoping that it will work but it still failed.
The only way to get them working is to start another konsole window from the original one by typing "konsole&". Do I need to do anything to have bash source my .bashrc when I start konsole by just clicking on the icon?

Thanks.

Last edited by koyi; 07-30-2003 at 02:38 AM.
 
Old 07-30-2003, 02:56 AM   #2
koyi
Member
 
Registered: Jul 2003
Location: Osaka, Japan
Distribution: Arch, Ubuntu
Posts: 421

Original Poster
Rep: Reputation: 31
Thanks folks but I got the problem solved myself. It is as simple as remove the option "--ls" from the command "konsole --ls" in the launcher.
 
Old 07-30-2003, 03:41 AM   #3
slakmagik
Senior Member
 
Registered: Feb 2003
Distribution: Slackware
Posts: 4,113

Rep: Reputation: Disabled
You could put it in ~/.bash_profile and leave -ls, too. I think that's the only point of the two files - profile is sourced for logins and rc isn't, but is sourced for interactive, non-login shells. And I've had some systems with a ~/.bashrc-private, as well. Not sure what that one's about.

Could be wrong about all this, though.
 
Old 07-30-2003, 03:05 PM   #4
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
nope, you're right digi ... at least the
man bash
says so ;)

I usually make a .bashrc and .bash_login,
where all .bash_login does is to source
.bashrc ;)

Cheers,
Tink
 
Old 08-02-2003, 10:00 AM   #5
koyi
Member
 
Registered: Jul 2003
Location: Osaka, Japan
Distribution: Arch, Ubuntu
Posts: 421

Original Poster
Rep: Reputation: 31
Tinkster, that is a good idea! Thanks.
 
  


Reply



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
where is bashrc ? Kanaflloric Slackware 12 10-06-2007 02:47 PM
.bashrc not being sourced shanenin Linux - Software 1 01-05-2005 10:07 PM
.bashrc help shanenin Linux - Software 4 02-14-2004 06:17 PM
bashrc nobu Slackware 6 03-21-2003 10:53 AM
.bashrc prasad Linux - General 1 04-14-2001 09:51 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 01:24 PM.

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
Open Source Consulting | Domain Registration