LinuxQuestions.org
Review your favorite Linux distribution.
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, 03: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 03:38 AM.
 
Old 07-30-2003, 03: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, 04: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, 04:05 PM   #4
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,005
Blog Entries: 11

Rep: Reputation: 903Reputation: 903Reputation: 903Reputation: 903Reputation: 903Reputation: 903Reputation: 903Reputation: 903
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, 11: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


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


All times are GMT -5. The time now is 09:19 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration