Re: 60-serial.rules, broken
<tomas@tuxteam.de> wrote:
...
> Perhaps you have a ~/.bash_profile, which then would take precedence over
> your ~/.profile (people who want to have both usually source ~/.profile
> from ~/.bash_profile. Writing shell-independent code is left as an exercise
> to the reader, though). Perhaps your PATH is not exported. Perhaps your
> .profile isn't in your HOME. Perhaps your shell ain't a login shell (it's
> possibly started by the DE monstrosity du jour). I'd start debugging it
> by putting some "echo hi >> /tmp/debug-shell-startup" or something, and
> putting it also into ~/.bashrc.
i use the MATE desktop but i think this would work for
Gnome too.
what i have set up for when i fire up the desktops is in
my .bashrc i check to see which directory i am in (which
is an indication of which project that terminal is working
on) and from there i test and set various environment
variables. it is all in my .bashrc file. when i save the
layout of the desktops and then restart the computer the
various terminals come up in the respective directories
i was in when i saved (or shutdown using the menu), if i
do not shutdown using the menu then the layouts are not
changed (which is perfect for my usage because not always
do i want to make changes to my desktop layouts). so the
difference is between using the menu shutdown and the
command line shutdown from root (which is how i shut down
99.99% of the time).
$ cwd=`pwd`
if [ "$HOME/rogo/project" == "${cwd}" -o \
"$HOME/src/github/project" == "${cwd}" -o \
"$HOME/src/github/similar_project" == "${cwd}" ] ; then
set stuff...
fi
etc.
i like that i don't have to remember which environment
variables to fiddle with and that i can just change the
context and content of a terminal starting up just by
changing to the right directory and then shutting down
using the menu - so if i need to change back to working
on an old project (as long as i've not removed the
things from my .bashrc) it is a simple adjustment.
this lets my brain cells get used for remembering
other things and scrolling through .bashrc can remind
me of other things i may want to change (some variables
i comment out different versions for debugging vs normal
production settings).
songbird
Reply to: