LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 02-20-2004, 08:22 AM   #1
doralsoral
Member
 
Registered: Aug 2003
Location: raleigh
Distribution: Gentoo 2005.1 x86_64
Posts: 931

Rep: Reputation: 31
where is .bash_profile in slackware?


ko im running slackware 9.1 and im trying to edit my path permanatley but i cant find .bash_profile or .bashrc to edit. the only thing that is in my home directory is .bash_history
 
Old 02-20-2004, 08:45 AM   #2
Nis
Member
 
Registered: Jul 2003
Location: Virginia
Distribution: Ubuntu Hoary (5.04)
Posts: 550

Rep: Reputation: 31
Then just
Code:
touch ~/.bashrc
touch ~/.bash_profile
 
Old 02-20-2004, 11:14 AM   #3
doralsoral
Member
 
Registered: Aug 2003
Location: raleigh
Distribution: Gentoo 2005.1 x86_64
Posts: 931

Original Poster
Rep: Reputation: 31
ok but what all needs to go in it?
 
Old 02-20-2004, 11:19 AM   #4
Nis
Member
 
Registered: Jul 2003
Location: Virginia
Distribution: Ubuntu Hoary (5.04)
Posts: 550

Rep: Reputation: 31
well, here's my .bash_profile
Code:
 
# Get the aliases and functions
if [ -f ~/.bashrc ]; then
        . ~/.bashrc
fi
 
# User specific environment and startup programs
 
PATH=$PATH:$HOME/bin
BASH_ENV=$HOME/.bashrc
USERNAME="root"
 
export USERNAME BASH_ENV PATH
and here's my .bashrc
Code:
# User Variables
EDITOR=vim
PAGER=most
MANEDITOR=$EDITOR
MANPAGER=$PAGER
 
export EDITOR PAGER MANEDITOR MANPAGER
 
# Aliases
alias ll='ls -lh --color=auto'
alias rm='rm -i'
alias cp='cp -i'
alias mv='mv -i'
 
# CLI Look
export PS1='[\T][\u:\w]# '
 
  


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
.bash_profile nguye103 Linux - Software 3 10-22-2004 01:48 PM
where is ~/.bash_profile? Jskill007 Slackware 4 09-17-2004 11:04 PM
.bash_profile wildcat22 Linux - General 3 04-13-2004 07:08 PM
need .bash_profile example true_atlantis Slackware 2 02-07-2004 06:27 PM
.bash_profile sikandar Linux - Software 9 08-31-2003 10:01 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 09:40 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
Open Source Consulting | Domain Registration