Active Topics

 


Reply
Thread Tools
Posts: 4,030 | Thanked: 1,633 times | Joined on Jul 2007 @ nd usa
#1
a) is there a command similar to DOS/F3, where it repeats your last typing/entry?
b) is there a program/function key where one can customize common typings so to minimize key strokes, e.g. sudo gainroot, exit, cat /proc/partitions, free, /media/mmc1....etc
c) if NO to the above, will osso-statusbar-cpu which has a command feature, be customized for the above purpose?

If all NO to the above, how does one enter repetitive entries either during tablet use or xterm use?


TIA,

bun
 
GeneralAntilles's Avatar
Posts: 5,478 | Thanked: 5,222 times | Joined on Jan 2006 @ St. Petersburg, FL
#2
Press d-pad up to cycle through the history.

Code:
alias <shortcut>="<command>"
For example:

Code:
alias cdl="cd $1;ls -al"
 

The Following User Says Thank You to GeneralAntilles For This Useful Post:
Posts: 8 | Thanked: 5 times | Joined on Jan 2008
#3
Install bash, then you will be able to do the "bang bang" ( http://www.csee.umbc.edu/courses/und...lec06/01.shtml )
 
Posts: 191 | Thanked: 29 times | Joined on Sep 2007 @ Ottawa
#4
Originally Posted by pix View Post
Install bash, then you will be able to do the "bang bang" ( http://www.csee.umbc.edu/courses/und...lec06/01.shtml )
Bash is a good shell replacement for the minimal included ash, which does not support aliases. You can find bash for OS2007/OS2008 at my site:
http://www.makikiweb.com/n800/downlo...1.17.armel.deb

Download to your n800, then after becoming root (with sudo gainroot) type:
dpkg -i bash_alone-3.1.17.armel.deb

After the install, just type bash on the prompt, and you are ready to go with bangs and aliases!

Craig...
__________________
N800, Think Outside Kbd, 8GB SDHC Card (OCZ, ext2), and 8GB SD Card (Patriot formatted as VFAT)
Zaurus SL-6000, IR Keyboard, 1GB SD Card
 
GeneralAntilles's Avatar
Posts: 5,478 | Thanked: 5,222 times | Joined on Jan 2006 @ St. Petersburg, FL
#5
Originally Posted by cvmiller View Post
Bash is a good shell replacement for the minimal included ash, which does not support aliases.
Er, mind explaining this, then?

Code:
BusyBox v1.6.1 (2007-09-27 18:08:59 EEST) Built-in shell (ash)
Enter 'help' for a list of built-in commands.

Nokia-N800-50-2:~# alias cdl="cd $1;ls -al"
Nokia-N800-50-2:~# cdl /home/    
drwxr-xr-x    3 root     root            0 Dec 11 10:41 .
drwxr-xr-x   24 root     root            0 Dec 31  1969 ..
drwxr-x---   41 user     users           0 Jan 18 04:05 user
Nokia-N800-50-2:~#
 
wv9k's Avatar
Posts: 145 | Thanked: 20 times | Joined on Dec 2007 @ Seattle, WA USA
#6
Yup, aliases work here under ash just fine, including the pile I normally use on the desktop box :-).
__________________
Nokia N800 - 24G (16G internal - 8G external) - KDE-3.5.8 :-)!
(2008-2?): RX-34_2008SE_2.2007.50-2_PR_COMBINED_MR0_ARM
iBlue 737 BT GPS - iGo Stowaway Ultra-Slim BT Keyboard.
Homebrew OTG cable and power injector.
 
Posts: 191 | Thanked: 29 times | Joined on Sep 2007 @ Ottawa
#7
Originally Posted by GeneralAntilles View Post
Er, mind explaining this, then? <deleted>
Hmm, I sit corrected. Ahh, I remember I was trying to get ash to read a .bashrc, and that is _not_ supported (he said grasping for straws).

Where does one place one's aliases in ash, so they are read in automagically?

Craig...
__________________
N800, Think Outside Kbd, 8GB SDHC Card (OCZ, ext2), and 8GB SD Card (Patriot formatted as VFAT)
Zaurus SL-6000, IR Keyboard, 1GB SD Card
 

The Following User Says Thank You to cvmiller For This Useful Post:
Posts: 110 | Thanked: 12 times | Joined on Oct 2007 @ Cambridge, UK
#8
I'm guessing, but did you try ~/.ashrc?
 

The Following User Says Thank You to cdmackay For This Useful Post:
Posts: 191 | Thanked: 29 times | Joined on Sep 2007 @ Ottawa
#9
~/.ashrc doesn't seem to work (for aliases)
__________________
N800, Think Outside Kbd, 8GB SDHC Card (OCZ, ext2), and 8GB SD Card (Patriot formatted as VFAT)
Zaurus SL-6000, IR Keyboard, 1GB SD Card
 
Posts: 3 | Thanked: 0 times | Joined on Jan 2008
#10
Add your aliases to your .profile as user (located at /home/user/.profile).

Once you're done:

$ sudo gainroot
# source /home/user/.profile
# exit

Your aliases should work now as user.
 
Reply


 
Forum Jump


All times are GMT. The time now is 18:48.