Tiny Core Linux

Tiny Core Base => TCB Talk => Topic started by: manit123 on January 04, 2014, 07:13:42 AM

Title: [SOLVED]ignore case in aterm
Post by: manit123 on January 04, 2014, 07:13:42 AM
I have to take care of case while writing file/folder name in terminal.
In ubuntu , I  added 'set completion-ignore-case On' to  ~/.bashrc . Then on pressing tab , I used to get all suggestions regardless of letter case.
How can I do something similiar in tiny core terminal ?
Title: Re: ignore case in aterm
Post by: bmarkus on January 04, 2014, 07:44:49 AM
It has nothing to do with aterm :(
Title: Re: ignore case in aterm
Post by: Rich on January 04, 2014, 08:08:52 AM
Hi manit123
What happens if you make that:
Code: [Select]
bind 'set completion-ignore-case on'
Title: Re: ignore case in aterm
Post by: tinypoodle on January 04, 2014, 08:28:22 AM
In ubuntu , I  added 'set completion-ignore-case On' to  ~/.bashrc . Then on pressing tab , I used to get all suggestions regardless of letter case.
How can I do something similiar in tiny core terminal ?

Are you referring to use of bash or ash (/bin/sh)?
Title: Re: ignore case in aterm
Post by: manit123 on January 05, 2014, 07:53:12 PM
to Rich
Should I add "bind 'set completion-ignore-case on'" in ~/.ashrc ?

to tinypoodle,
The thing I did in ubuntu was for bash in gnome-terminal .
I want something similiar for ash in aterm .
Title: Re: ignore case in aterm
Post by: tinypoodle on January 05, 2014, 08:55:16 PM
to Rich
Should I add "bind 'set completion-ignore-case on'" in ~/.ashrc ?
No, ash doesn't have such a builtin.
Quote
to tinypoodle,
The thing I did in ubuntu was for bash in gnome-terminal .
I want something similiar for ash in aterm .
bash has a plethora of features which ash does not have, so you shouldn't just expect any feature of bash to be provided by ash (I wouldn't know about the specific one, but would rather be surprised if ash would provide it).
As has been mentioned before, the terminal is irrelevant here.
Title: Re: ignore case in aterm
Post by: curaga on January 06, 2014, 03:40:30 AM
Be nice people ;)

manit123, you can just install bash, and then configure aterm to use it by adding "export SHELL=/bin/bash" in your .profile.
Title: Re: ignore case in aterm
Post by: manit123 on January 06, 2014, 04:28:11 AM
tried following (one by one) in  ~/.profile
export SHELL=/bin/bash
export SHELL=/usr/local/bin/bash
Then opened another terminal. Still 'echo $SHELL' says '/bin/sh'
Title: Re: ignore case in aterm
Post by: curaga on January 06, 2014, 04:39:23 AM
You need to log out and back for .profile changes to sync.
Title: Re: ignore case in aterm
Post by: gerald_clark on January 06, 2014, 07:09:40 AM
It is not hat simple.
Please read http://forum.tinycorelinux.net/index.php/topic,16387.msg97921.html#msg97921
Title: Re: ignore case in aterm
Post by: manit123 on January 13, 2014, 04:14:47 AM
I added 'export SHELL=/usr/local/bin/bash'  in ~/.wmx/SystemTools/Terminal before 'exec aterm' .
Now 'ignore case' works.
Remember , ~/.ashrc is no longer used , instead 'alias' etc. should be set in ~/.bashrc