User Tools

Site Tools


bash_profile

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
bash_profile [2024/08/23 16:21] – created stevebash_profile [2025/11/29 11:49] (current) steve
Line 9: Line 9:
 # Set defaults for the history stuff big and per machine. # Set defaults for the history stuff big and per machine.
 # This is important because HOMEDIR is an nfs mount through  # This is important because HOMEDIR is an nfs mount through 
-#  autofs across all machines. +#  autofs across most  machines. 
 # Below doesn't change how the time is stored in the history # Below doesn't change how the time is stored in the history
 #  file, only what it looks like with the history command. #  file, only what it looks like with the history command.
Line 44: Line 44:
 fi fi
  
-alias ls='ls --time-style="+%Y-%m-%d %H:%M:%S"'+alias ls='ls --color=auto --time-style="+%Y-%m-%d %H:%M:%S"'
 alias ll='ls -l' alias ll='ls -l'
 alias l='ls -altr' alias l='ls -altr'
-alias l.='ls -d .* --color=auto'+alias l.='ls -d .*'
 alias R='cat /etc/*ease | grep PRETTY | cut -d "=" -f 2' alias R='cat /etc/*ease | grep PRETTY | cut -d "=" -f 2'
 alias D='lsblk -i -f -o size,fstype,name,mountpoint,uuid' alias D='lsblk -i -f -o size,fstype,name,mountpoint,uuid'
 alias I='ip a | grep -E "inet|inet6"' alias I='ip a | grep -E "inet|inet6"'
-alias F='df -hlBM --output=source,iavail,avail,target'+alias F='df -lBM --output=source,iavail,avail,target -h'
  
 # And, if you want the weather; # And, if you want the weather;
Line 70: Line 70:
 fi fi
  
-This line lists out the aliases with capital letters +For a multi-line prompt that can easily be copied and pasted; 
-echo 'Aliases available =' $(alias | grep -E '^alias [A-Z]' | cut -c 7| cut -d "=" -f1)+export PS1=
 +# \u in \w on \h at \D{%Y-%m-%d-%H-%M} # 
 +"
  
 # vim:ts=4:sw=4 # vim:ts=4:sw=4
 </code> </code>
bash_profile.1724430118.txt.gz · Last modified: by steve