Skip to content

Commit

Permalink
setup file
Browse files Browse the repository at this point in the history
  • Loading branch information
akash0x53 committed Nov 30, 2019
1 parent 50a6968 commit b3ffded
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions setup.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
#!/usr/bin/env bash


# setup gitconfig
ln -s "$PWD/gitconfig" "$HOME/.gitconfig" &2>/dev/null

# setup bashrc
# if ~/.bashrc present already, create new .mybashrc and add "source .mybashrc" in .bashrc
if [ -f "$HOME/.bashrc" ]; then
echo "source $PWD/bashrc.funcs" >> $HOME/.bashrc
echo "source $PWD/bashrc" >> $HOME/.bashrc
else
echo "WARNING: bashrc setup failed, system .bashrc not found."
fi

0 comments on commit b3ffded

Please sign in to comment.