Skip to main content

All Questions

Tagged with
1 vote
1 answer
77 views

Programmatically determining shell profile file

My script needs to inject an alias into shell profile file. That script may be run in bash (so it would inject the alias into ~/.bashrc) or zshell (~/.zshrc) or any other shell. Is there a way to get ...
Andrey's user avatar
  • 187
0 votes
0 answers
853 views

Precedence of profile files

On my work machine (which I do not have sudo access on), I change my $PATH variable in my ~/.profile. However, I am finding that some scripts in /etc/profile.d are changing the path further, making my ...
Tohiko's user avatar
  • 101
1 vote
1 answer
694 views

Bash: ".profile" not loaded despite nonexistance of .bash_profile or .bash_login (Debian 10)

Reading the documentation in ~/.profile, on my Debian system, it is stated that # ~/.profile: executed by the command interpreter for login shells. # This file is not read by bash(1), if ...
user3728501's user avatar
  • 2,984
2 votes
1 answer
987 views

$PATH variable is messed up, where is it being sourced from in Mac Catalina

When I echo $PATH in terminal, I see a big string that kind of looks messed and has some old irrelevant paths. I would like to fix this. But first, I'd like to understand when I echo $PATH in terminal,...
AnchovyLegend's user avatar
0 votes
0 answers
38 views

Terminal gets closed as soon as I start it

I have newly given ubuntu 16.04. I wanted my terminal to execute command during start up so I go to: Edit -> profile preferences -> run a custom command instead of my shell There I wrote the ...
Ankur Gautam's user avatar
1 vote
1 answer
223 views

~/.bash_profile not source from symlinked login shell

If I call bash --login Then ~/.bash_profile is called. This seems as it should. I also have /bin/sh symlinked to bash $ ls -l /bin/sh lrwxrwxrwx 1 root root 4 Jun 22 2017 /bin/sh -> bash ...
Phil Rosenberg's user avatar
3 votes
1 answer
3k views

"fork: Resource temporarily unavailable" from git in MacOS El Capitan

Sometimes when I am using Git and cannot do a sudo command, it reports fork: Resource temporarily unavailable What does this mean, and what should I do about it?
John Roca's user avatar
  • 133