Updating path unix
Personal aliases and functions should # go into ~/.bashrc # Provides a colored /bin/ls command. alias ls='ls --color=auto' # Provides prompt for non-login shells, specifically shells started # in the X environment.[Review the LFS archive thread titled # PS1 Environment Variable for a great case study behind this script # addendum.] NORMAL="\[\e[0m\]" RED="\[\e[1;31m\]" GREEN="\[\e[1;32m\]" if $EUID == 0 ; then PS1="$RED\u [ $NORMAL\w$RED ]# $NORMAL" else PS1="$GREEN\u [ $NORMAL\w$GREEN ]\$ $NORMAL" fi # End /etc/bashrc # Personal environment variables and startup programs.
If you want, you can uncomment the last section to put a dot at the end of your path.
This will allow executables in the current working directory to be executed without specifiying a ./, however you are warned that this is generally considered a security hazard.
Both allow you to more easily manage users and SSH keys for pushing commits, as well creating repositories.]]
Personal aliases and functions should go into # ~/.bashrc. Second argument is the name of the # path variable to be modified (default: PATH) pathremove () pathprepend () pathappend () # Set the initial path export PATH=/bin:/usr/bin if [ $EUID -eq 0 ] ; then pathappend /sbin:/usr/sbin unset HISTFILE fi # Setup some environment variables.The files in the directory generally provide global settings.If an equivalent file exists in your home directory it may override the global settings.if [ -d /usr/local/lib/pkgconfig ] ; then pathappend /usr/local/lib/pkgconfig PKG_CONFIG_PATH fi if [ -d /usr/local/bin ]; then pathprepend /usr/local/bin fi if [ -d /usr/local/sbin -a $EUID -eq 0 ]; then pathprepend /usr/local/sbin fi if [ -d ~/bin ]; then pathprepend ~/bin fi #if [ $EUID -gt 99 ]; then # pathappend . # System wide environment variables and startup programs should go into # /etc/profile.Personal environment variables and startup programs # should go into ~/.bash_profile.
Search for updating path unix:
The file # System wide environment variables and startup programs.