2021-01-02 23:30:57 -08:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
# Calculate directory relative to $HOME
|
2021-01-02 23:45:58 -08:00
|
|
|
DIR=$HOME
|
|
|
|
BASE=$(realpath --relative-to=$DIR $PWD)
|
2021-01-02 23:30:57 -08:00
|
|
|
pushd $HOME >> /dev/null
|
|
|
|
ln -vs $BASE/home/vimrc .vimrc
|
|
|
|
ln -vs $BASE/home/bashrc .bashrc
|
2021-01-02 23:45:58 -08:00
|
|
|
popd >> /dev/null
|
2021-01-02 23:30:57 -08:00
|
|
|
|
|
|
|
# Create ftplugin links
|
2021-01-02 23:45:58 -08:00
|
|
|
DIR=$HOME/.vim/after/ftplugin
|
|
|
|
BASE=$(realpath --relative-to=$DIR $PWD)
|
|
|
|
mkdir -p $DIR
|
|
|
|
pushd $DIR >> /dev/null
|
2021-01-02 23:30:57 -08:00
|
|
|
ln -vs $BASE/home/vim/after/ftplugin/tex.vim .
|
|
|
|
popd >> /dev/null
|
|
|
|
|
2021-01-02 23:45:58 -08:00
|
|
|
DIR=$HOME/.vim/colors
|
|
|
|
BASE=$(realpath --relative-to=$DIR $PWD)
|
|
|
|
mkdir -p $DIR
|
|
|
|
pushd $DIR >> /dev/null
|
|
|
|
ln -vs $BASE/home/vim/vim-amino/amino.vim .
|
2021-01-02 23:30:57 -08:00
|
|
|
popd >> /dev/null
|
|
|
|
|
2021-01-02 23:45:58 -08:00
|
|
|
|
|
|
|
DIR=$HOME/.config/fish
|
|
|
|
BASE=$(realpath --relative-to=$DIR $PWD)
|
|
|
|
mkdir -p $DIR
|
|
|
|
pushd $DIR >> /dev/null
|
|
|
|
ln -vs $BASE/home/fish/fishd_color .
|
|
|
|
ln -vs $BASE/home/fish/functions .
|
2021-01-02 23:30:57 -08:00
|
|
|
popd >> /dev/null
|