Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Wed 01 Oct 2014, 02:35
All times are UTC - 4
 Forum index » House Training » Users ( For the regulars )
Bash tips
Moderators: Flash, Ian, JohnMurga
Post new topic   Reply to topic View previous topic :: View next topic
Page 1 of 1 [5 Posts]  
Author Message
Bruce B


Joined: 18 May 2005
Posts: 11109
Location: The Peoples Republic of California

PostPosted: Fri 10 Jun 2005, 18:40    Post subject:  Bash tips  

I noted that version 1.0.3 includes bash 3.00.

I discovered if I added -e bash to the end of my rxvt menu commands it would execute bash. I only made these changes in a few places like in the run command and my icewm quick launch.

For the desktop I made a script to run bash with a shourtcut to the script as follows:

#!/bin/sh
rxvt -rv -fn 10x20 -e bash

the -rv switch reverses colors and the -fn 10x20 gives me a larger window and font size.

One nice thing about bash is you can make a /root/.bashrc file and put aliases and other commands in it to tell bash how to run.

For my purposes right now - I just use it for aliases

Anyone else have some bash tips?
Back to top
View user's profile Send private message 
GuestToo
Puppy Master

Joined: 04 May 2005
Posts: 4078

PostPosted: Fri 10 Jun 2005, 22:35    Post subject:  

export HISTFILESIZE=2000
export HISTCONTROL=ignoredups

in .bashrc keeps 2000 lines in your history file, and bash commands that are duplicates of the last bash command are not added

typing history displays the bash commands history

alias h='history' lets you type h instead of history

if you add SHELL=/bin/bash to /etc/profile, rxvt and aterm will run bash automatically

you can symlink /usr/bin/bash to /bin/sh and bash will run as your default shell (whenever /bin/sh is run) ... you need to symlink busybox to /bin/sh before you shut Puppy down ... be careful, you can easily stop Puppy from booting if you setup the symlink wrong in rc.local
Back to top
View user's profile Send private message 
Bruce B


Joined: 18 May 2005
Posts: 11109
Location: The Peoples Republic of California

PostPosted: Fri 10 Jun 2005, 23:47    Post subject:  

Your tips worked good as I've learned to expect. Thanks.

I put the SHELL=/bin/bash in profile.

Also, I really enjoy the dotpup for aterm in transparent mode.
Back to top
View user's profile Send private message 
GuestToo
Puppy Master

Joined: 04 May 2005
Posts: 4078

PostPosted: Sat 11 Jun 2005, 02:59    Post subject:  

i forgot to use the -sl option in my aterm rox-wrapper
you can use values up to about 32767 for -sl

i was trying other colour effects too
for example,
aterm -sl 32000 -tr -sh 60 -fg white -bg black
aterm -sl 32000 -tr -sh 60 -tint red -fg white -bg black

you can put these options in .Xdefaults too
Back to top
View user's profile Send private message 
BarryK
Puppy Master


Joined: 09 May 2005
Posts: 7047
Location: Perth, Western Australia

PostPosted: Sat 11 Jun 2005, 03:23    Post subject:  

yes, I'll probably put that SHELL=/bin/bash into the next release of Puppy.
I adopted an extremely cautious install of Bash for 1.0.3.
Back to top
View user's profile Send private message Visit poster's website 
Display posts from previous:   Sort by:   
Page 1 of 1 [5 Posts]  
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » House Training » Users ( For the regulars )
Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.0589s ][ Queries: 12 (0.0097s) ][ GZIP on ]