mirror of
https://github.com/kastdeur/dotfiles.git
synced 2025-05-14 20:09:26 +02:00
Jobs in ps1, renamed bashrc to bash/rc
This commit is contained in:
parent
da8ef4041a
commit
8fc77963e6
6 changed files with 32 additions and 7 deletions
10
bash/profile
10
bash/profile
|
@ -1,3 +1,13 @@
|
|||
# ~/.bash_profile
|
||||
[ -z "$DOTFILES" ] && source "$HOME/.profile"
|
||||
|
||||
[ -r "$HOME/.bash_profile.local" ] && source "$HOME/.bash_profile.local"
|
||||
|
||||
if shopt -q login_shell
|
||||
then
|
||||
# This is a bash login shell
|
||||
LOGINHISTORY=~/.login.history
|
||||
LOGINSTRING="$(date) ${USER}@${HOSTNAME}"
|
||||
|
||||
echo $LOGINSTRING > $LOGINHISTORY
|
||||
fi
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue