Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Search - ".bash_profile"
-
Previously: http://bu.tl/8t
I wanted to grab a script off another computer, and was getting strange scp errors. Turns out my use of .bashrc to hold all my aliases and custom variables was not "best practice," and scp was flipping out. I renamed my .bashrc files to .bash_profile, and scp worked properly from there. But then, I found that by default xterm doesn't consider an xterm session a "login." So I had to update my .Xresources file with an option for xterm, and re-merge it with xrdb. SO! I was ready to grab my script to set my openbox config the way I like it.
All the while, I noticed that the trackpad tapping didn't work, so that was my next hurdle to take. Next post! -
I have the following shell aliases set:
conf='vim ~/.bash_profile'
go='. ~/.bash_profile'
This reason alone is why I've hesitated to learn golang.1 -
Not by me, but by my friend
He write a shell command to alias 'cd' into 'rm -rf' and then print out 'hehe', then save the command to bash_profile
Me? I put that command to our engineer's slack channel and wait for a natural selection does its job2 -
Installed JDK 14 and now everything has scattered. Cannot build, run or compile because of a plethora of config that must be updated. Literally want to die. Naturally, i would update my java home path to my old version in my bash_profile right? well tough shit. that didn't work either. Really fucking frustrated rn. Its like Java and sbt on my machine are at war.9
-
Anyone got some good/funny, .bash_profile aliases?
I think we developers should all share our .bash_profiles and inspire each other :)
Wrote a rundown of what I have in mine
https://rehhoff.me/blog/...2 -
Aliases set up in bashrc don’t work unless I source them using a dot. That’s why I set up my aliases and paths in bash_profile. Bashrc is f##king useless.3
-
Wrote a small function to transfer files to and from servers to local machine when using a proxy server.
This is meant to be copied in the .bash_profile
https://github.com/gauravat16/... -
Despite already having a few years of professional experience dealing with Linux servers, I still, to this day, confuse, which environment file gets sourced and when...
There's /etc/profile, /etc/bashrc, ~/.bash_profile, ~/.profile, ~/.bashrc
I think it's... Bashrc for interactive shells, profile for login shells.
But then I have examples like "ssh user@server 'echo $var'" that... Don't source any of the files!
You can enable user environment files for SSH that get sourced whenever a user logs on through SSH (~/.ssh/environment / environment specified for a key in ~/.ssh/authorized_keys)
Is there some sort of master environment file that gets sourced *every* time, no matter what kind of shell starts?1