Top ".bash-profile" questions

For questions about scripts written for the Bash command shell.

How do I use pbcopy in a bash function? Can it be scripted?

I often find myself copying history commands to my clipboard using this: echo !123 | pbcopy This works fine from the Terminal. …

macos bash terminal .bash-profile pbcopy
SET JAVA_HOME to reflect jenv java version

I just started to use jenv, I followed a blog post that was explaining how to use jenv and setup …

.bash-profile java-home jenv
How can I execute commands as another user with their .bash_profile instead of the current user's?

I want to run a command as a not-root user in a startup script (rc.local). The command I want …

linux sudo init su .bash-profile
Escaping characters in bash alias

This was the alias: # make a tmux session in working dir with the name of the dir alias th='tmux …

linux bash unix .bash-profile aliases
User environment is not sourced with chroot

I have a little problem with a chroot environment and I hope you could help me :) Here's my story: 1 - …

linux bash chroot .bash-profile
how to modify conda 'source activate' ps1 behavior

my current bash ps1 is as follows: bldred='\e[1;31m' # Red bldcyn='\e[1;36m' # Cyan bldwht='\e[1;37…

bash conda .bash-profile ps1