profiles/run.sh
2025-04-09 20:12:48 +08:00

17 lines
584 B
Bash
Executable File

#!/bin/sh
echo "Warning: This will force overwrite your .bashrc and so on.
If you want to exit, please press Ctrl+C to exit.
Press the Enter to continue."
read _
sed -i "s#^Profile_PATH.*\$#Profile_PATH=$PWD#g" bash/.bashrc
sed -i "s#^set Profile_PATH .*\$#set Profile_PATH $PWD#g" fish/config.fish
ln -sf $PWD/bash/.bashrc ~/.bashrc
mkdir -p ~/.config/fish && ln -sf $PWD/fish/config.fish ~/.config/fish/config.fish
mkdir -p ~/.config/tmux && ln -sf $PWD/tmux/tmux.conf ~/.config/tmux/tmux.conf
mkdir -p ~/.config/vim && ln -sf $PWD/vim/vimrc ~/.config/vim/vimrc
echo "Finished"