Download script
This commit is contained in:
parent
f191341fb3
commit
556fd0d783
25
README.md
25
README.md
@ -1,2 +1,27 @@
|
|||||||
# bashrc
|
# bashrc
|
||||||
|
|
||||||
|
## Download
|
||||||
|
### Automated
|
||||||
|
#### cURL
|
||||||
|
`curl https://git.72.lv/eriks/bashrc/raw/branch/master/download.sh | bash`
|
||||||
|
|
||||||
|
#### wget
|
||||||
|
`wget -qO - https://git.72.lv/eriks/bashrc/raw/branch/master/download.sh | bash`
|
||||||
|
|
||||||
|
### Manual
|
||||||
|
#### cURL
|
||||||
|
```
|
||||||
|
curl -Os "https://git.72.lv/eriks/bashrc/raw/branch/master/.bash_profile"
|
||||||
|
curl -Os "https://git.72.lv/eriks/bashrc/raw/branch/master/.bash_logout"
|
||||||
|
curl -Os "https://git.72.lv/eriks/bashrc/raw/branch/master/.bash_aliases"
|
||||||
|
curl -Os "https://git.72.lv/eriks/bashrc/raw/branch/master/.bashrc"
|
||||||
|
```
|
||||||
|
|
||||||
|
#### wget
|
||||||
|
```
|
||||||
|
wget "https://git.72.lv/eriks/bashrc/raw/branch/master/.bash_profile" -O .bash_profile
|
||||||
|
wget "https://git.72.lv/eriks/bashrc/raw/branch/master/.bash_logout" -O .bash_logout
|
||||||
|
wget "https://git.72.lv/eriks/bashrc/raw/branch/master/.bash_aliases" -O .bash_aliases
|
||||||
|
wget "https://git.72.lv/eriks/bashrc/raw/branch/master/.bashrc" -O .bashrc
|
||||||
|
```
|
||||||
|
|
||||||
|
15
download.sh
Normal file
15
download.sh
Normal file
@ -0,0 +1,15 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
CURL=$(command -v curl)
|
||||||
|
WGET=$(command -v wget)
|
||||||
|
if [[ -n $CURL ]]; then
|
||||||
|
$CURL -Os "https://git.72.lv/eriks/bashrc/raw/branch/master/.bash_profile"
|
||||||
|
$CURL -Os "https://git.72.lv/eriks/bashrc/raw/branch/master/.bash_logout"
|
||||||
|
$CURL -Os "https://git.72.lv/eriks/bashrc/raw/branch/master/.bash_aliases"
|
||||||
|
$CURL -Os "https://git.72.lv/eriks/bashrc/raw/branch/master/.bashrc"
|
||||||
|
elif [[ -n $WGET ]]; then
|
||||||
|
$WGET "https://git.72.lv/eriks/bashrc/raw/branch/master/.bash_profile" -O .bash_profile
|
||||||
|
$WGET "https://git.72.lv/eriks/bashrc/raw/branch/master/.bash_logout" -O .bash_logout
|
||||||
|
$WGET "https://git.72.lv/eriks/bashrc/raw/branch/master/.bash_aliases" -O .bash_aliases
|
||||||
|
$WGET "https://git.72.lv/eriks/bashrc/raw/branch/master/.bashrc" -O .bashrc
|
||||||
|
fi
|
Loading…
x
Reference in New Issue
Block a user