26 lines
606 B
Bash
Executable File
26 lines
606 B
Bash
Executable File
#!/bin/bash
|
|
|
|
# Calculate directory relative to $HOME
|
|
BASE=$(realpath --relative-to=$HOME $PWD)
|
|
echo $BASE
|
|
|
|
pushd $HOME >> /dev/null
|
|
ln -vs $BASE/home/vimrc .vimrc
|
|
ln -vs $BASE/home/bashrc .bashrc
|
|
|
|
# Create ftplugin links
|
|
D_VIM_AFTER_FTPLUGIN=$HOME/.vim/after/ftplugin
|
|
mkdir -p $D_VIM_AFTER_FTPLUGIN
|
|
pushd $D_VIM_AFTER_FTPLUGIN >> /dev/null
|
|
ln -vs $BASE/home/vim/after/ftplugin/tex.vim .
|
|
popd >> /dev/null
|
|
|
|
D_CONFIG_FISH=$HOME/.config/fish
|
|
mkdir -p $D_CONFIG_FISH
|
|
pushd $D_CONFIG_FISH >> /dev/null
|
|
ln -vs $BASE/home/fish/fishd_color .
|
|
ln -vs $BASE/home/fish/functions .
|
|
popd >> /dev/null
|
|
|
|
popd >> /dev/null
|