LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 11-22-2010, 11:47 PM   #1
EonSlack
LQ Newbie
 
Registered: Nov 2010
Posts: 15

Rep: Reputation: 0
.bashrc


Alright, so i'm running slack 13.1 and am trying to make a short command, thats not the important part though.
I want to make an alias, but when i
Code:
nano ~/.bashrc
I open a file somewhat like this

Code:
        [Its blank if you didnt catch it]
It has nothing there.. from what ive looked at online, they've all got something in that file... not sure whats up.

Am i looking at the wrong file or am i supposed to write it from scratch?
 
Old 11-22-2010, 11:52 PM   #2
mlangdn
Senior Member
 
Registered: Mar 2005
Location: Kentucky
Distribution: Slackware64-current
Posts: 1,429

Rep: Reputation: 196Reputation: 196
If you need one, you probably have to write it from scratch. I know Slackware does not have one.
 
Old 11-22-2010, 11:52 PM   #3
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,066
Blog Entries: 11

Rep: Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910
Quote:
Am i looking at the wrong file or am i supposed to write it from scratch?
The latter. Slack comes w/ pretty much NO customisations,
and that includes .bashrc



Cheers,
Tink
 
Old 11-22-2010, 11:59 PM   #4
EonSlack
LQ Newbie
 
Registered: Nov 2010
Posts: 15

Original Poster
Rep: Reputation: 0
Will it automatically read it? or do i need to do something to make it use that file?
 
Old 11-23-2010, 12:02 AM   #5
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,066
Blog Entries: 11

Rep: Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910
Well ... no, you shouldn't have to do anything on top of this.

The easiest test would be to add something like
Code:
export PS1="\u@\h \w\$ "
to basrhc ... if you open a new xterm you should get a nice
prompt instead of just "bash <version-mumble>".
 
Old 11-23-2010, 01:26 AM   #6
EonSlack
LQ Newbie
 
Registered: Nov 2010
Posts: 15

Original Poster
Rep: Reputation: 0
Thanks a bunch!
I've actually found a bunch of other ways to meet my needs 1000x easier!
But ill probably be using .bashrc soon..
 
  


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
.bashrc / .bash_profile /etc/profile /etc/bashrc deadeyes Red Hat 2 02-13-2010 12:22 PM
bashrc themanwhowas Slackware 7 01-04-2009 01:28 PM
Setting path: /etc/profile, /etc/bashrc or ~/.bashrc Swakoo Linux - General 1 08-07-2007 11:59 PM
no .bashrc? mattman Slackware 6 06-10-2003 04:59 PM
.bashrc roofy Slackware 7 05-06-2003 02:32 PM


All times are GMT -5. The time now is 05:04 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