picopoy.blogg.se

Mac os x terminal echo alias
Mac os x terminal echo alias








mac os x terminal echo alias mac os x terminal echo alias

Volumes/MacHD/Users/murray/Library/Application Support/GoodSync Volumes/MacHD/Applications/Programming/Python/anaconda/bin Library/Frameworks/amework/Versions/3.3/bin

mac os x terminal echo alias

However, now executing in Terminal echo $PATH gives my entire path (as defined in ~/.bashrc) twice - in a rather strange order of duplication: That does now allow my alias commands (formerly in ~/.profile and now in ~/.bashrc) to work in Terminal. I tried the method recommended at e-not-profile-file, namely, to move all the commands formerly in ~/.profile into ~/.bashrc and then to create ~/.bash_profile consisting of lines: # Set aliases for native MySQL from Īlias mysqlclient='/usr/local/mysql/bin/mysql'Īlias mysqladmin='/usr/local/mysql/bin/mysqladmin'Īlias mysqlstatus='ps aux | grep mysql | grep -v grep' # Set apachectl alias for MacPorts apache2Īlias apache2ctl='sudo /opt/local/apache2/bin/apachectl'Īlias apachestart='sudo /opt/local/apache2/bin/apachectl -k start'Īlias apachestop='sudo /opt/local/apache2/bin/apachectl -k stop'Īlias apacherestart='sudo /opt/local/apache2/bin/apachectl restart' PATH="$:/Library/Frameworks/amework/Versions/2.7/bin"Įxport PATH="$PATH:/Volumes/MacHD/Applications/Programming/Python/anaconda/bin"Įxport PATH=$PATH:"/Volumes/MacHD/Users/murray/Library/Application Support/GoodSync"Įxport PATH="$PATH:/Volumes/MacHD/Users/murray/bin"Įxport PATH=$PATH:/Volumes/MacHD/Applications/Math/Singular/3-1-6/ix86Mac-darwinĪlias tomcat7start='/Library/Tomcat/bin/startup.sh'Īlias tomcat7stop='/Library/Tomcat/bin/shutdown.sh' # MacPorts Installer addition: adding an appropriate PATH variable for use with MacPorts.Įxport PATH=/opt/local/bin:/opt/local/sbin:/opt/local/apache2/bin:$PATHĮxport CLASSPATH=$CLASSPATH:/Volumes/MacHD/Users/murray/Library/texmf/texhyphjĮxport CPPFLAGS="-I/opt/local/include $CPPFLAGS"Įxport LDFLAGS="-L/opt/local/lib $LDFLAGS" Here's the whole file (with commented-out lines omitted): I don't see anything in my ~/.profile that could be calling bash again. What could be wrong and how can it be fixed? (And Terminal is set to use the default login shell, which is bash. ~/.bashrc or ~/.bash_profile or ~/.login file. I thought perhaps some other startup file is being read and hence commands in ~/.profile are therefore not being executed, but I find no such: I have no profile the command alias sudo='sudo ' but that doesn't fix the problem. I did try the ruse I found somwhere of including before any of the other alias lines in. I know that something peculiar is going on because when I attempt to exit the (one and only) running Terminal session with command exit I just see an echoed responseīut can quit Terminal by executing the same exit command again. For example, ~/.profile includes:Īlias mysqlctl='sudo /usr/local/mysql/support-files/rver' Recently (since upgrading to Mavericks?), several alias commands in ~/.profile are not working after I start Terminal (although numerous path settings set up there are working as expected).










Mac os x terminal echo alias