Adds a clean install script
This commit is contained in:
@@ -1 +1 @@
|
|||||||
/home/atuleu/.local/share/omf/themes/boxfish/fish_prompt.fish
|
../../../.local/share/omf/themes/bobthefish/functions/fish_prompt.fish
|
||||||
9
.gitignore
vendored
9
.gitignore
vendored
@@ -1,9 +0,0 @@
|
|||||||
*
|
|
||||||
|
|
||||||
!.gitignore
|
|
||||||
!.config/fish/*
|
|
||||||
!.config/starship.toml
|
|
||||||
!.config/omf/*
|
|
||||||
!.emacs
|
|
||||||
!.config/git/*
|
|
||||||
!.tmux.conf
|
|
||||||
|
|||||||
3
.gitmodules
vendored
Normal file
3
.gitmodules
vendored
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
[submodule "omf"]
|
||||||
|
path= .local/share/omf
|
||||||
|
url= https://github.com/oh-my-fish/oh-my-fish.git
|
||||||
1
.local/share/omf
Submodule
1
.local/share/omf
Submodule
Submodule .local/share/omf added at 92a572d8cd
32
install.sh
Executable file
32
install.sh
Executable file
@@ -0,0 +1,32 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
set -e
|
||||||
|
|
||||||
|
files=".config/fish \
|
||||||
|
.config/git .config/omf .config/starship .tmux.conf .local/share/omf"
|
||||||
|
|
||||||
|
|
||||||
|
function this_script_root_dir() {
|
||||||
|
dirname $(realpath ${BASH_SOURCE[0]})
|
||||||
|
}
|
||||||
|
|
||||||
|
function run() {
|
||||||
|
echo "$@"
|
||||||
|
$@
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
function install_home() {
|
||||||
|
for f in $files
|
||||||
|
do
|
||||||
|
run rm -Rf $HOME/$f
|
||||||
|
dir=$(dirname $f)
|
||||||
|
if [ ! "$dir" = "." ]
|
||||||
|
then
|
||||||
|
run mkdir -p $HOME/$dir
|
||||||
|
fi
|
||||||
|
run ln -sf $(this_script_root_dir)/$f $HOME/$f
|
||||||
|
done
|
||||||
|
}
|
||||||
|
|
||||||
|
install_home
|
||||||
Reference in New Issue
Block a user