Setting locale for individual programs
Peter Garrett
peter.garrett at optusnet.com.au
Tue Jul 11 19:11:08 UTC 2006
On Tue, 11 Jul 2006 21:16:37 +0300
"Dotan Cohen" <dotancohen at gmail.com> wrote:
> On 11/07/06, Lea Gris <lea.gris at noiraude.net> wrote:
> > bashrc only applies to bash environment unlike profile.
>
> Excellent!
>
> > #!/bin/bash
> > export LANG=en
> > /usr/bin/kate
>
> Alright, I've got a test case in ~/bin. But ~/bin is not in my path,
> so I'm tring to google a solution. I've added this to ~/.bashrc:
> export PATH=$PATH:~/bin
>
> But it doesn't work. Is this the right way to add ~/bin to my path?
$ grep PATH ~/.bashrc
# set PATH so it includes user's private bin if it exists
PATH=~/bin:"${PATH}"
So look in ~/.bashrc for that line, or add it if it isn't there
> Also, what should the permissions of ~/.bashrc be? 644?
$ ls -al .bashrc
-rw-r--r-- 1 peter peter 2583 2006-07-08 08:04 .bashrc
Yup, 644 - but that's the default anyway, for files you create in your
$HOME in Ubuntu.
peter at prospero:~ $ umask
0022 ---> translates to 755 for directories and 644 for files.
Peter
More information about the ubuntu-users
mailing list