Doomcide wrote:anonymous_user wrote:I just realized that when using CDM, my .bash_profile does not get sourced. Any workaround for this (other than putting everything in .bashrc)?Same here...Edit: A workaround would be to add source /home/USERNAME/.bash_profile to ~/.xinitrcMy .bash_profile gets sourced.
I'm trying to launch one command in a new gnome-terminal window from a shell script, and it seems that my .bashrc file doesn't get sourced when calling gnome-terminal and executing a command:
gnome-terminal -t "my title" -e vim
But it does when launching gnome-terminal alone:
gnome-terminal -t "my title"
(for testing purposes, just add a echo "something" to the end of the .bashrc)
I also tr
In my .bashrc file I configured how I would like my prompt to be displayed. My .bashrc is sourced in .bash_profile. The command in the .bashrc file is:
PS1='[\t] \u@\h is $PWD :: '
I switched the user (for me) timezone to GMT+0 using tzselect.
cfr wrote:It should read /etc/profile in that case which by default sources /etc/bash.bashrc. At least, according to bash's man page.
I am trying to define some commands for my convenience but worried a bit if editing .bashrc can lead to security issues.
In ~/.ssh/config you can use the LocalCommand directive to execute a local command whenever you connect to a remote machine via SSH. But how do I execute a command when I exit an SSH connection? It seems that *.bashrc/.bash_profile* files are not sourced when connection ends or is closed.
Hello,
I try to use shell bookmarks with DirB.
It is a script file with a list of function.
Need to be sourced in .bashrc.
But, when i sourced the file, errors rised !
can try it?
Do you have this problem?
any idea?
The file join to this post.
bash: .bashDirB: line 117: syntax error near unexpected token `elif'
'ash: .bashDirB: line 117: ` elif [ "$1" == "-"
While trying to determine the differences between .bashrc and .bash_profile I notice that .bashrc is never read, and that .bash_profile is only read from SSH, but not from PHP. This seems to contradiction to the information in man bash. Could someone explain to me why this works as it does?
I don't know about sourcing your .bashrc in gnome, but you are probably better off moving your PATH definition to your .bash_profile, before you source the .bashrc.
skanky
https://bbs.archlinux.org/profile.php?id=30276
2012-05-10T08:49:40Z