mirror of
https://codeberg.org/qwjyh/dotfiles.git
synced 2025-06-26 19:29:20 +09:00
Merge remote-tracking branch 'origin/main' into manjaro
fix install.sh
This commit is contained in:
commit
dc4d3fac1b
4 changed files with 41 additions and 9 deletions
28
bin/install.sh
Normal file → Executable file
28
bin/install.sh
Normal file → Executable file
|
@ -1,12 +1,22 @@
|
|||
#!/usr/bin/fish
|
||||
#!/usr/bin/bash
|
||||
set -eu
|
||||
|
||||
# test working directory
|
||||
# =========================================================
|
||||
# check executing location
|
||||
# =========================================================
|
||||
if [ ! -d "bin" -a ! -d "dotfiles" ]; then
|
||||
echo "Wrong execution location"
|
||||
echo "Please run this script on dotfiles root folder."
|
||||
exit 1
|
||||
fi
|
||||
|
||||
|
||||
# symlink
|
||||
#ln -s ~/.config/fish/config.fish dotfiles/fish/config.fish
|
||||
cp ~/.config/fish/config.fish (pwd)/dotfiles/fish/config.fish
|
||||
ln -sf (pwd)/dotfiles/fish/config.fish ~/.config/fish/config.fish
|
||||
ln -sf (pwd)/dotfiles/starship/starship.toml ~/.config/starship.toml
|
||||
ln -sf (pwd)/dotfiles/neovim/init.lua ~/.config/nvim/init.lua
|
||||
ln -sf (pwd)/dotfiles/neovim/lua/plugins.lua ~/.config/nvim/lua/plugins.lua
|
||||
# =========================================================
|
||||
# links
|
||||
# =========================================================
|
||||
ln -sf $(pwd)/dotfiles/fish/config.fish ~/.config/fish/config.fish
|
||||
ln -sf $(pwd)/dotfiles/starship/starship.toml ~/.config/starship.toml
|
||||
ln -sf $(pwd)/dotfiles/tmux.conf ~/.tmux.conf
|
||||
|
||||
ln -sf $(pwd)/dotfiles/neovim/init.lua ~/.config/nvim/init.lua
|
||||
ln -sf $(pwd)/dotfiles/neovim/lua/plugins.lua ~/.config/nvim/lua/plugins.lua
|
Loading…
Add table
Add a link
Reference in a new issue