LinuxQuestions.org
Visit the LQ Articles and Editorials section
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 03-21-2003, 08:22 AM   #1
nobu
Member
 
Registered: Jul 2002
Posts: 32

Rep: Reputation: 15
Angry bashrc


i have no idea where the heck is bashrc file in slackware.
I don't see it anywhere.
 
Old 03-21-2003, 09:09 AM   #2
Excalibur
Senior Member
 
Registered: Jun 2002
Location: Northern VA, USA
Distribution: Ubuntu
Posts: 1,180

Rep: Reputation: 45
Normally it is located in the users home directory as .bashrc and it is a shell script that executes each time the user logs in using the bash shell. It might not be present at all. It is optional. If desired though it can easily be created. Some variations allow for a global /etc/bashrc script that it is called from the users ~/.bashrc script.
 
Old 03-21-2003, 09:43 AM   #3
Aussie
Senior Member
 
Registered: Sep 2001
Location: Brisvegas, Antipodes
Distribution: Slackware
Posts: 4,590

Rep: Reputation: 56
.bashrc is a text file with bash options in it. This is mine,
Code:
# .bashrc

# User specific aliases and functions

# Source global definitions
if [ -f /etc/bashrc ]; then
        . /etc/bashrc
fi

export CFLAGS="-O2 -march=athlon-tbird -mcpu=athlon-tbird"
export CXXFLAGS="-O2 -march=athlon-tbird -mcpu=athlon-tbird"

PS1="\u@\h \W$ "

alias ll="ls -al --color"
alias l="ls -l --color"
You can make all sorts of bash prompts by changing the PS1 line, I sometimes give users who annoy me a "bite me" bash prompt :-)

Last edited by Aussie; 03-21-2003 at 09:45 AM.
 
Old 03-21-2003, 10:07 AM   #4
snocked
Member
 
Registered: Dec 2002
Location: St. Louis, MO
Distribution: Slackware 9.1
Posts: 482

Rep: Reputation: 30
I couldn't find a .bashrc so I made one in my ~ dir.
 
Old 03-21-2003, 10:15 AM   #5
Aussie
Senior Member
 
Registered: Sep 2001
Location: Brisvegas, Antipodes
Distribution: Slackware
Posts: 4,590

Rep: Reputation: 56
Quote:
Originally posted by snocked
I couldn't find a .bashrc so I made one in my ~ dir.

Me too
 
Old 03-21-2003, 11:32 AM   #6
newbieME
Member
 
Registered: Mar 2003
Location: BC Canada
Distribution: Slack Niner ;)
Posts: 185

Rep: Reputation: 30
Question

i don't have bashrc either...but i added all my alias in /etc/profile and it works just fine

my guess is that profile is a replacement of some sort for bashrc....
 
Old 03-21-2003, 11:53 AM   #7
Aussie
Senior Member
 
Registered: Sep 2001
Location: Brisvegas, Antipodes
Distribution: Slackware
Posts: 4,590

Rep: Reputation: 56
/etc/profile is a global config file, a .bashrc in a users home directory allows users to set their own options.
 
  


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 ? Longinus Linux - Newbie 2 03-27-2004 12:50 PM
no .bashrc? mattman Slackware 6 06-10-2003 04:59 PM
.bashrc roofy Slackware 7 05-06-2003 02:32 PM
.bashrc prasad Linux - General 1 04-14-2001 10:51 AM


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