Updated Dotfiles location
This commit is contained in:
parent
0040da9508
commit
1fd34083d4
@ -157,16 +157,16 @@ function pullall() {
|
|||||||
done
|
done
|
||||||
}
|
}
|
||||||
|
|
||||||
# Pull Dotfiles inside ~/git/dotfiles
|
# Pull Dotfiles inside ~/.dotfiles/
|
||||||
function pulldots() {
|
function pulldots() {
|
||||||
|
|
||||||
# Check if folders are there and if its Master or Main
|
# Check if folders are there and if its Master or Main
|
||||||
if [ "$(grep -c -i ""master"" ~/git/dotfiles/.git/config )" -gt 0 ]; then
|
if [ "$(grep -c -i ""master" "~/.dotfiles/.git/config )" -gt 0 ]; then
|
||||||
CURRENTDIR=$(pwd) && echo "dotfiles Found, Pulling master branch..." && cd ~/git/dotfiles && git checkout master && git pull && cd $CURRENTDIR && echo ""
|
CURRENTDIR=$(pwd) && echo "dotfiles Found, Pulling master branch..." && cd ~/.dotfiles/ && git checkout master && git pull && cd $CURRENTDIR && echo ""
|
||||||
|
|
||||||
|
|
||||||
elif [ "$(grep -c -i ""main"" ~/git/dotfiles/.git/config )" -gt 0 ]; then
|
elif [ "$(grep -c -i ""main" "~/.dotfiles/.git/config )" -gt 0 ]; then
|
||||||
CURRENTDIR=$(pwd) && echo "dotfiles Found, Pulling main branch..." && cd ~/git/dotfiles && git checkout main && git pull && cd $CURRENTDIR && echo ""
|
CURRENTDIR=$(pwd) && echo "dotfiles Found, Pulling main branch..." && cd ~/.dotfiles/ && git checkout main && git pull && cd $CURRENTDIR && echo ""
|
||||||
|
|
||||||
else
|
else
|
||||||
echo "I can't seem to file any dotfiles folders" && echo ""
|
echo "I can't seem to file any dotfiles folders" && echo ""
|
||||||
|
|||||||
19
README.md
19
README.md
@ -1,28 +1,29 @@
|
|||||||
# Dotfiles
|
# Dotfiles
|
||||||
|
|
||||||
# Installation
|
## Installation
|
||||||
### Download and change folder
|
#### Download and change folder
|
||||||
```
|
```
|
||||||
cd ~
|
cd ~
|
||||||
git clone https://github.com/ncltech/dotfiles.git
|
git clone https://git.ncltech.co.uk/phil/dotfiles.git .dotfiles
|
||||||
|
|
||||||
cd dotfiles
|
|
||||||
```
|
```
|
||||||
### Run install
|
#### Run install
|
||||||
```
|
```
|
||||||
|
cd ~/.dotfiles/
|
||||||
./install.sh
|
./install.sh
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
||||||
# Uninstallation
|
## Uninstallation
|
||||||
|
|
||||||
### Change to dotfiles folder
|
#### Change to dotfiles folder
|
||||||
```
|
```
|
||||||
cd ~/dotfiles
|
cd ~/.dotfiles
|
||||||
```
|
```
|
||||||
|
|
||||||
### Run uninstaller
|
#### Run uninstaller
|
||||||
```
|
```
|
||||||
|
cd ~/.dotfiles/
|
||||||
./uninstall.sh
|
./uninstall.sh
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user