1
0
Tom 12 жил өмнө
parent
commit
d9edaaa020
1 өөрчлөгдсөн 1 нэмэгдсэн , 6 устгасан
  1. 1 6
      setup.sh

+ 1 - 6
setup.sh

@@ -1,15 +1,10 @@
 # symlink dotfiles
 # symlink dotfiles
-SCRIPT_PATH=`realpath $0`
-dotfiles=`dirname $SCRIPT_PATH`
+dir=~/dotfiles
 olddir=~/dotfiles_old   # backup directory
 olddir=~/dotfiles_old   # backup directory
-
-
 files=".bashrc .vimrc .bash_logout .gitconfig"    # list of files/folders to symlink in homedir
 files=".bashrc .vimrc .bash_logout .gitconfig"    # list of files/folders to symlink in homedir
 
 
 ## create dotfiles_old in homedir
 ## create dotfiles_old in homedir
-echo "Creating $olddir for backup"
 mkdir -p $olddir
 mkdir -p $olddir
-cd $dotfiles
 
 
 ## move any existing dotfiles in homedir to dotfiles_old directory, then create symlinks
 ## move any existing dotfiles in homedir to dotfiles_old directory, then create symlinks
 for file in $files; do
 for file in $files; do