LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 04-29-2004, 02:40 PM   #1
slackwarefan
Member
 
Registered: Oct 2003
Location: Florida
Distribution: Slackware
Posts: 273

Rep: Reputation: 30
starting bash as a login shell every time


I upgraded slack to current and found that now when I start an X based terminal it loads bash as a non-login interactive shell. This means that bash does not load /etc/profile or ~.bash_profile, only .bashrc. How can I make bash start as a login shell everytime it is executed, or everytime it is executed by an X based terminal?

-Thanks in advance.
 
Old 04-29-2004, 03:38 PM   #2
meldar
Member
 
Registered: Feb 2004
Location: Denmark
Distribution: Gentoo
Posts: 136

Rep: Reputation: 15
Use a command-arg like:
konsole --ls
xterm -ls

It does not allways work however, for example when using an integrated terminal. Personally I modified my modified my .bashrc-script and added an "export PS1".
 
Old 04-29-2004, 04:44 PM   #3
Shade
Senior Member
 
Registered: Mar 2003
Location: Burke, VA
Distribution: RHEL, Slackware, Ubuntu, Fedora
Posts: 1,418
Blog Entries: 1

Rep: Reputation: 46
I simply added:

Code:
source /etc/profile
source ~/.bash_profile
to .bashrc to achieve the same effect more easily than changing every shortcut in every wm for a terminal to a login shell.

This way, you can just leave .bashrc with those two commands, and add all your aliases, functions and whatnot to .bash_profile and have them load for login shells and subshells.

--Shade
 
Old 04-30-2004, 02:55 PM   #4
slackwarefan
Member
 
Registered: Oct 2003
Location: Florida
Distribution: Slackware
Posts: 273

Original Poster
Rep: Reputation: 30
Thanks. You're awsome man.

-Thanks again.
 
  


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
Starting gdm instead of shell login calcon Slackware 1 04-10-2005 10:17 AM
login directly to bash shell openart Linux - Newbie 5 10-27-2004 08:05 AM
Rare problem - cant login into bash shell Xris718 Linux - General 2 07-16-2004 01:07 AM
pesky bash shell error every time I log in illiniguy3043 Linux - Newbie 1 06-12-2004 01:54 PM
How to login to bash shell inarin Linux - Newbie 1 10-07-2003 02:45 PM

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

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