Skip to content

Commit

Permalink
new changes
Browse files Browse the repository at this point in the history
* changed VIM colorscheme
* install pyenv
  • Loading branch information
akash0x53 committed Apr 26, 2020
1 parent 3788a95 commit c226f05
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 7 deletions.
1 change: 0 additions & 1 deletion bashrc
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,6 @@ export PATH=$PATH:$JAVA_HOME
# pyenv setup
export PYENV_ROOT="$HOME/.pyenv"
export PATH="$PYENV_ROOT/bin:$PATH"
export PATH="$PYENV_ROOT/shims/:$PATH"

export LC_ALL=en_US.UTF-8
export LANG=en_US.UTF-8
Expand Down
22 changes: 17 additions & 5 deletions setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,17 @@ link_file()
ln -s "${PWD}/${conf_file}" "$HOME/${conf_file}" &> /dev/null
[ "$?" -eq "0" ] && echo " ... DONE." || echo " ... MAY ALREADY EXISTS."
}
# install required tools


#-------- install required tools -------
sudo apt install xsel $> /dev/null


# setup gitconfig
#----------- setup gitconfig -----------
link_file gitconfig

# setup bashrc

#----------- setup bashrc --------------
# if ~/.bashrc present already, create new .mybashrc and add "source .mybashrc" in .bashrc
if [ -f "$HOME/.bashrc" ]; then
if [ ! -w "$HOME/.bashrc" ]; then
Expand All @@ -29,14 +32,16 @@ else
echo "WARNING: bashrc setup failed, system .bashrc not found."
fi

# setup vimrc

#------------ setup vimrc -------------
mkdir -p $HOME/.vim
if [ ! -d "$HOME/.vim/autoload" ]; then
git clone https://github.com/tpope/vim-pathogen.git $HOME/.vim/
fi
link_file vimrc

# SSH config

#------------ SSH config ---------------
# Create key-pair for github account and add in ssh-config

KFILE="$HOME/.ssh/gh"
Expand All @@ -54,3 +59,10 @@ if [ ! -f "$KFILE" ]; then
cat "$KFILE.pub" | xsel -ib
notify-send "Public key copied to clipboard"
fi


#----------- setup pyenv ----------------
if [ ! -d "$HOME/.pyenv" ]; then
git clone https://github.com/pyenv/pyenv.git "$HOME/.pyenv"
fi

2 changes: 1 addition & 1 deletion vimrc
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ set foldlevel=-1
set tabstop=4
set shiftwidth=4
set expandtab
colorscheme desert
colorscheme industry

"call pathogen#infect()
syntax on
Expand Down

0 comments on commit c226f05

Please sign in to comment.