Bash tips

Using applications, configuring, problems
Post Reply
Message
Author
Bruce B

Bash tips

#1 Post by Bruce B »

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?

GuestToo
Puppy Master
Posts: 4083
Joined: Wed 04 May 2005, 18:11

#2 Post by GuestToo »

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

Bruce B

#3 Post by Bruce B »

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.

GuestToo
Puppy Master
Posts: 4083
Joined: Wed 04 May 2005, 18:11

#4 Post by GuestToo »

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

User avatar
BarryK
Puppy Master
Posts: 9392
Joined: Mon 09 May 2005, 09:23
Location: Perth, Western Australia
Contact:

#5 Post by BarryK »

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.

Post Reply