The time now is Tue 24 Apr 2018, 11:00
All times are UTC - 4 |
Author |
Message |
Bruce B
Joined: 18 May 2005 Posts: 11488 Location: The Peoples Republic of California
|
Posted: 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
|
|
 |
GuestToo
Puppy Master
Joined: 04 May 2005 Posts: 4078
|
Posted: 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
|
|
 |
Bruce B
Joined: 18 May 2005 Posts: 11488 Location: The Peoples Republic of California
|
Posted: 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
|
|
 |
GuestToo
Puppy Master
Joined: 04 May 2005 Posts: 4078
|
Posted: 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
|
|
 |
BarryK
Puppy Master

Joined: 09 May 2005 Posts: 8526 Location: Perth, Western Australia
|
Posted: 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
|
|
 |
|
|
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.0422s ][ Queries: 12 (0.0114s) ][ GZIP on ] |