feat: add pulling from remote to .bashrc
This commit is contained in:
parent
bb75efbdf8
commit
4042cf8e0e
1 changed files with 9 additions and 2 deletions
11
.bashrc
11
.bashrc
|
@ -1,3 +1,9 @@
|
|||
# Pull the latest changes from the remote (but only once!)
|
||||
if ! [ -v REPO_INITIALISED ]; then
|
||||
git pull --quiet && export REPO_INITIALISED=true
|
||||
echo "dotfiles loaded!"
|
||||
fi
|
||||
|
||||
# ~/.bashrc: executed by bash(1) for non-login shells.
|
||||
# see /usr/share/doc/bash/examples/startup-files (in the package bash-doc)
|
||||
# for examples
|
||||
|
@ -105,5 +111,6 @@ fi
|
|||
export NVM_DIR="$HOME/.nvm"
|
||||
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This enables NVM
|
||||
|
||||
export PATH="$HOME/bin:$PATH"
|
||||
echo "Hello! .bashrc loaded."
|
||||
|
||||
# Path setting
|
||||
export PATH="$HOME/bin:$PATH"
|
Loading…
Add table
Add a link
Reference in a new issue