mirror of
https://github.com/alexanderepstein/Bash-Snippets
synced 2018-11-08 02:59:35 +01:00
Updating to 1.19.2
This commit is contained in:
parent
3e543e6b11
commit
d684fdf685
@ -390,7 +390,7 @@ cd Bash-Snippets
|
|||||||
|
|
||||||
* Git checkout to the latest stable release
|
* Git checkout to the latest stable release
|
||||||
```bash
|
```bash
|
||||||
git checkout v1.19.1
|
git checkout v1.19.2
|
||||||
```
|
```
|
||||||
|
|
||||||
* Run the guided install script with
|
* Run the guided install script with
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
.\" generated with Ronn/v0.7.3
|
.\" generated with Ronn/v0.7.3
|
||||||
.\" http://github.com/rtomayko/ronn/tree/0.7.3
|
.\" http://github.com/rtomayko/ronn/tree/0.7.3
|
||||||
.
|
.
|
||||||
.TH "BASH\-SNIPPETS" "1" "August 2017" "" ""
|
.TH "BASH\-SNIPPETS" "1" "October 2017" "ff" ""
|
||||||
.
|
.
|
||||||
.SH "NAME"
|
.SH "NAME"
|
||||||
\fBbash\-snippets\fR \- A collection of small bash scripts for heavy terminal users
|
\fBbash\-snippets\fR \- A collection of small bash scripts for heavy terminal users
|
||||||
@ -280,43 +280,6 @@ Example: geo \-a 8\.8\.8\.8 \-o city,zip,isp
|
|||||||
.
|
.
|
||||||
.IP "" 0
|
.IP "" 0
|
||||||
.
|
.
|
||||||
.SS "Lyrics"
|
|
||||||
Description: Fetch lyrics for a certain song\.
|
|
||||||
.
|
|
||||||
.P
|
|
||||||
Usage: lyrics [flags] or tool [\-a] [arg] [\-s] [arg]
|
|
||||||
.
|
|
||||||
.IP "\(bu" 4
|
|
||||||
\-a Artist of the song to fetch lyrics for
|
|
||||||
.
|
|
||||||
.IP "\(bu" 4
|
|
||||||
\-s Song of the artist to fetch lyrics for
|
|
||||||
.
|
|
||||||
.IP "\(bu" 4
|
|
||||||
\-f Export the lyrics to file rather than outputting to stdout
|
|
||||||
.
|
|
||||||
.IP "\(bu" 4
|
|
||||||
\-u Update Bash\-Snippet Tools
|
|
||||||
.
|
|
||||||
.IP "\(bu" 4
|
|
||||||
\-h Show the help
|
|
||||||
.
|
|
||||||
.IP "\(bu" 4
|
|
||||||
\-v Get the tool version
|
|
||||||
.
|
|
||||||
.IP "" 0
|
|
||||||
.
|
|
||||||
.P
|
|
||||||
Examples:
|
|
||||||
.
|
|
||||||
.IP "\(bu" 4
|
|
||||||
lyrics \-a logic \-s run it
|
|
||||||
.
|
|
||||||
.IP "\(bu" 4
|
|
||||||
lyrics \-a logic \-s run it \-f ~/runItLyrics\.txt
|
|
||||||
.
|
|
||||||
.IP "" 0
|
|
||||||
.
|
|
||||||
.SS "Movies"
|
.SS "Movies"
|
||||||
Description: Provides relevant information about a certain movie\.
|
Description: Provides relevant information about a certain movie\.
|
||||||
.
|
.
|
||||||
|
@ -194,29 +194,6 @@ Example: geo -a 8.8.8.8 -o city,zip,isp
|
|||||||
|
|
||||||
* -u Updates Bash-Snippets
|
* -u Updates Bash-Snippets
|
||||||
|
|
||||||
### Lyrics
|
|
||||||
Description: Fetch lyrics for a certain song.
|
|
||||||
|
|
||||||
Usage: lyrics [flags] or tool [-a] [arg] [-s] [arg]
|
|
||||||
|
|
||||||
* -a Artist of the song to fetch lyrics for
|
|
||||||
|
|
||||||
* -s Song of the artist to fetch lyrics for
|
|
||||||
|
|
||||||
* -f Export the lyrics to file rather than outputting to stdout
|
|
||||||
|
|
||||||
* -u Update Bash-Snippet Tools
|
|
||||||
|
|
||||||
* -h Show the help
|
|
||||||
|
|
||||||
* -v Get the tool version
|
|
||||||
|
|
||||||
Examples:
|
|
||||||
|
|
||||||
* lyrics -a logic -s run it
|
|
||||||
|
|
||||||
* lyrics -a logic -s run it -f ~/runItLyrics.txt
|
|
||||||
|
|
||||||
### Movies
|
### Movies
|
||||||
Description: Provides relevant information about a certain movie.
|
Description: Provides relevant information about a certain movie.
|
||||||
|
|
||||||
|
@ -2,6 +2,14 @@
|
|||||||
|
|
||||||
# Bash-Snippets Changelog
|
# Bash-Snippets Changelog
|
||||||
|
|
||||||
|
## Changes
|
||||||
|
* ytview for macOS can now use mpv
|
||||||
|
* lyrics tool was removed, api is not available anymore
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div align="center">
|
||||||
|
|
||||||
## Version 1.19.1
|
## Version 1.19.1
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
# Author: Alexander Epstein https://github.com/alexanderepstein
|
# Author: Alexander Epstein https://github.com/alexanderepstein
|
||||||
|
|
||||||
currentVersion="1.19.1"
|
currentVersion="1.19.2"
|
||||||
configuredClient=""
|
configuredClient=""
|
||||||
## rest of these variables are search flags
|
## rest of these variables are search flags
|
||||||
search="0"
|
search="0"
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
# Author: Alexander Epstein https://github.com/alexanderepstein
|
# Author: Alexander Epstein https://github.com/alexanderepstein
|
||||||
|
|
||||||
currentVersion="1.19.1"
|
currentVersion="1.19.2"
|
||||||
configuredClient=""
|
configuredClient=""
|
||||||
private="0" ## state of private flag
|
private="0" ## state of private flag
|
||||||
all="0" ## state of all flag
|
all="0" ## state of all flag
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
# Author: Alexander Epstein https://github.com/alexanderepstein
|
# Author: Alexander Epstein https://github.com/alexanderepstein
|
||||||
|
|
||||||
currentVersion="1.19.1"
|
currentVersion="1.19.2"
|
||||||
state=""
|
state=""
|
||||||
configuredClient=""
|
configuredClient=""
|
||||||
|
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
|
|
||||||
base=""
|
base=""
|
||||||
exchangeTo=""
|
exchangeTo=""
|
||||||
currentVersion="1.19.1"
|
currentVersion="1.19.2"
|
||||||
configuredClient=""
|
configuredClient=""
|
||||||
|
|
||||||
## This function determines which http get tool the system has installed and returns an error if there isnt one
|
## This function determines which http get tool the system has installed and returns an error if there isnt one
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
|
|
||||||
base=""
|
base=""
|
||||||
exchangeTo=""
|
exchangeTo=""
|
||||||
currentVersion="1.19.1"
|
currentVersion="1.19.2"
|
||||||
configuredClient=""
|
configuredClient=""
|
||||||
currencyCodes=(AUD BGN BRL CAD CHF CNY CZK DKK
|
currencyCodes=(AUD BGN BRL CAD CHF CNY CZK DKK
|
||||||
EUR GBP HKD HRK HUF IDR ILS INR
|
EUR GBP HKD HRK HUF IDR ILS INR
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
# Author: Alexander Epstein https://github.com/alexanderepstein
|
# Author: Alexander Epstein https://github.com/alexanderepstein
|
||||||
currentVersion="1.19.1"
|
currentVersion="1.19.2"
|
||||||
configuredClient=""
|
configuredClient=""
|
||||||
artist="false"
|
artist="false"
|
||||||
song="false"
|
song="false"
|
Before Width: | Height: | Size: 72 KiB After Width: | Height: | Size: 72 KiB |
@ -1,7 +1,7 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
# Author: Alexander Epstein https://github.com/alexanderepstein
|
# Author: Alexander Epstein https://github.com/alexanderepstein
|
||||||
|
|
||||||
currentVersion="1.19.1"
|
currentVersion="1.19.2"
|
||||||
configuredClient=""
|
configuredClient=""
|
||||||
directionsFlag="0"
|
directionsFlag="0"
|
||||||
directionsMapFlag="0"
|
directionsMapFlag="0"
|
||||||
|
2
geo/geo
2
geo/geo
@ -4,7 +4,7 @@
|
|||||||
# Author: Jake Meyer
|
# Author: Jake Meyer
|
||||||
# Github: https://github.com/jakewmeyer
|
# Github: https://github.com/jakewmeyer
|
||||||
|
|
||||||
currentVersion="1.19.1"
|
currentVersion="1.19.2"
|
||||||
configuredClient=""
|
configuredClient=""
|
||||||
|
|
||||||
## This function determines which http get tool the system has installed and returns an error if there isnt one
|
## This function determines which http get tool the system has installed and returns an error if there isnt one
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
# Author: Alexander Epstein https://github.com/alexanderepstein
|
# Author: Alexander Epstein https://github.com/alexanderepstein
|
||||||
currentVersion="1.19.1"
|
currentVersion="1.19.2"
|
||||||
declare -a tools=(cheat cloudup crypt cryptocurrency currency geo lyrics movies newton qrify short siteciphers stocks taste todo transfer weather ytview)
|
declare -a tools=(cheat cloudup crypt cryptocurrency currency geo movies newton qrify short siteciphers stocks taste todo transfer weather ytview)
|
||||||
declare -a extraLinuxTools=(maps)
|
declare -a extraLinuxTools=(maps)
|
||||||
declare -a extraDarwinTools
|
declare -a extraDarwinTools
|
||||||
usedGithubInstallMethod="0"
|
usedGithubInstallMethod="0"
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
# Author: Alexander Epstein https://github.com/alexanderepstein
|
# Author: Alexander Epstein https://github.com/alexanderepstein
|
||||||
|
|
||||||
currentVersion="1.19.1"
|
currentVersion="1.19.2"
|
||||||
configuredClient=""
|
configuredClient=""
|
||||||
configuredPython=""
|
configuredPython=""
|
||||||
detail=false
|
detail=false
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
# Author: Alexander Epstein https://github.com/alexanderepstein
|
# Author: Alexander Epstein https://github.com/alexanderepstein
|
||||||
# Author: Navan Chauhan https://github.com/N3V0N
|
# Author: Navan Chauhan https://github.com/N3V0N
|
||||||
|
|
||||||
currentVersion="1.19.1"
|
currentVersion="1.19.2"
|
||||||
configuredClient=""
|
configuredClient=""
|
||||||
configuredPython=""
|
configuredPython=""
|
||||||
APIKEY="b2f8880475c888056b6207067fbaa197"
|
APIKEY="b2f8880475c888056b6207067fbaa197"
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
# Author: Alexander Epstein https://github.com/alexanderepstein
|
# Author: Alexander Epstein https://github.com/alexanderepstein
|
||||||
|
|
||||||
currentVersion="1.19.1"
|
currentVersion="1.19.2"
|
||||||
configuredClient=""
|
configuredClient=""
|
||||||
flagCount="0"
|
flagCount="0"
|
||||||
declare -a simpleOperations=(simplify factor derive integrate zeroes roots tangent area cos sin tan arccos arcsin arctan abs log)
|
declare -a simpleOperations=(simplify factor derive integrate zeroes roots tangent area cos sin tan arccos arcsin arctan abs log)
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
# Author: Linyos Torovoltos github.com/linyostorovovoltos
|
# Author: Linyos Torovoltos github.com/linyostorovovoltos
|
||||||
|
|
||||||
currentVersion="1.19.1"
|
currentVersion="1.19.2"
|
||||||
multiline="0" # flag that indicates multiline option
|
multiline="0" # flag that indicates multiline option
|
||||||
|
|
||||||
|
|
||||||
|
@ -2,6 +2,7 @@
|
|||||||
# Author: Alexander Epstein https://github.com/alexanderepstein
|
# Author: Alexander Epstein https://github.com/alexanderepstein
|
||||||
|
|
||||||
currentVersion="1.19.1"
|
currentVersion="1.19.1"
|
||||||
|
currentVersion="1.19.2"
|
||||||
configuredClient=""
|
configuredClient=""
|
||||||
configuredPython=""
|
configuredPython=""
|
||||||
|
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
DELAY=1
|
DELAY=1
|
||||||
configuredClient=""
|
configuredClient=""
|
||||||
currentVersion="1.19.1"
|
currentVersion="1.19.2"
|
||||||
|
|
||||||
checkOpenSSL()
|
checkOpenSSL()
|
||||||
{
|
{
|
||||||
|
2
skeleton
2
skeleton
@ -1,6 +1,6 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
# Author: Alexander Epstein https://github.com/alexanderepstein
|
# Author: Alexander Epstein https://github.com/alexanderepstein
|
||||||
currentVersion="1.19.1"
|
currentVersion="1.19.2"
|
||||||
configuredClient=""
|
configuredClient=""
|
||||||
|
|
||||||
## This function determines which http get tool the system has installed and returns an error if there isnt one
|
## This function determines which http get tool the system has installed and returns an error if there isnt one
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
# Author: Alexander Epstein https://github.com/alexanderepstein
|
# Author: Alexander Epstein https://github.com/alexanderepstein
|
||||||
|
|
||||||
currentVersion="1.19.1"
|
currentVersion="1.19.2"
|
||||||
configuredClient=""
|
configuredClient=""
|
||||||
configuredPython=""
|
configuredPython=""
|
||||||
|
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
# Author: Alexander Epstein https://github.com/alexanderepstein
|
# Author: Alexander Epstein https://github.com/alexanderepstein
|
||||||
|
|
||||||
currentVersion="1.19.1"
|
currentVersion="1.19.2"
|
||||||
configuredClient=""
|
configuredClient=""
|
||||||
configuredPython=""
|
configuredPython=""
|
||||||
source ~/.bash_profile 2> /dev/null ## allows grabbing enviornment variable
|
source ~/.bash_profile 2> /dev/null ## allows grabbing enviornment variable
|
||||||
|
@ -1,39 +0,0 @@
|
|||||||
#!/bin/env bats
|
|
||||||
|
|
||||||
@test "Testing lyrics tool" {
|
|
||||||
echo lyrics
|
|
||||||
}
|
|
||||||
|
|
||||||
@test "Check for latest version of bash-snippets on update" {
|
|
||||||
if [[ "$(uname)" == "Linux" ]];then
|
|
||||||
run lyrics update
|
|
||||||
[ "$status" -eq 0 ]
|
|
||||||
[ "$output" = "Bash-Snippets is already the latest version" ]
|
|
||||||
fi
|
|
||||||
}
|
|
||||||
|
|
||||||
@test "The -h option should print usage" {
|
|
||||||
run lyrics -h
|
|
||||||
[ "$status" -eq 0 ]
|
|
||||||
[ "${lines[0]}" = "Lyrics" ]
|
|
||||||
}
|
|
||||||
|
|
||||||
@test "No arguments prints usage instructions" {
|
|
||||||
run lyrics
|
|
||||||
[ "$status" -eq 0 ]
|
|
||||||
[ "${lines[0]}" = "Lyrics" ]
|
|
||||||
}
|
|
||||||
|
|
||||||
@test "Getting some lyrics" {
|
|
||||||
run lyrics -a logic -s run it
|
|
||||||
[ "$status" -eq 0 ]
|
|
||||||
[ "${lines[0]}" = "Me and my team gotta intervene" ]
|
|
||||||
}
|
|
||||||
|
|
||||||
@test "Getting some lyrics to file" {
|
|
||||||
rm -f ~/templyrics.txt
|
|
||||||
run lyrics -a logic -s run it -f ~/templyrics.txt
|
|
||||||
[ "$status" -eq 0 ]
|
|
||||||
[ "$(cat $HOME/templyrics.txt | grep -Eo "Me and my team gotta intervene")" = "Me and my team gotta intervene" ]
|
|
||||||
rm -f ~/templyrics.txt
|
|
||||||
}
|
|
@ -1,7 +1,7 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
# Author: Alexander Epstein https://github.com/alexanderepstein
|
# Author: Alexander Epstein https://github.com/alexanderepstein
|
||||||
flag=""
|
flag=""
|
||||||
currentVersion="1.19.1"
|
currentVersion="1.19.2"
|
||||||
configuredClient=""
|
configuredClient=""
|
||||||
|
|
||||||
## This function determines which http get tool the system has installed and returns an error if there isnt one
|
## This function determines which http get tool the system has installed and returns an error if there isnt one
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
configuredDownloadClient=""
|
configuredDownloadClient=""
|
||||||
configuredUploadClient=""
|
configuredUploadClient=""
|
||||||
configuredClient=""
|
configuredClient=""
|
||||||
currentVersion="1.19.1"
|
currentVersion="1.19.2"
|
||||||
down="false"
|
down="false"
|
||||||
|
|
||||||
## This function determines which http get tool the system has installed and returns an error if there isnt one
|
## This function determines which http get tool the system has installed and returns an error if there isnt one
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
# Author: Alexander Epstein https://github.com/alexanderepstein
|
# Author: Alexander Epstein https://github.com/alexanderepstein
|
||||||
declare -a tools=(cheat cloudup crypt cryptocurrency currency geo lyrics movies newton qrify short siteciphers stocks taste todo transfer weather ytview)
|
declare -a tools=(cheat cloudup crypt cryptocurrency currency geo movies newton qrify short siteciphers stocks taste todo transfer weather ytview)
|
||||||
all="1"
|
all="1"
|
||||||
|
|
||||||
askUninstall()
|
askUninstall()
|
||||||
@ -47,3 +47,7 @@ fi
|
|||||||
if [[ $all == "1" ]]; then
|
if [[ $all == "1" ]]; then
|
||||||
removeManpage || exit 1
|
removeManpage || exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if -f /usr/local/bin/lyrics;then
|
||||||
|
rm -f /usr/local/bin/lyrics # Tool was deprecated so it should be removed if installed
|
||||||
|
fi
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
# Author: Alexander Epstein https://github.com/alexanderepstein
|
# Author: Alexander Epstein https://github.com/alexanderepstein
|
||||||
|
|
||||||
currentVersion="1.19.1" #This version variable should not have a v but should contain all other characters ex Github release tag is v1.2.4 currentVersion is 1.2.4
|
currentVersion="1.19.2" #This version variable should not have a v but should contain all other characters ex Github release tag is v1.2.4 currentVersion is 1.2.4
|
||||||
LANG="${LANG:-en}"
|
LANG="${LANG:-en}"
|
||||||
locale=$(echo $LANG | cut -c1-2)
|
locale=$(echo $LANG | cut -c1-2)
|
||||||
configuredClient=""
|
configuredClient=""
|
||||||
@ -40,7 +40,7 @@ getIPWeather()
|
|||||||
if [[ $country == "US" ]]; then ## if were in the us id rather not use longitude and latitude so the output is nicer
|
if [[ $country == "US" ]]; then ## if were in the us id rather not use longitude and latitude so the output is nicer
|
||||||
city=$(httpGet ipinfo.io/city) > /dev/null
|
city=$(httpGet ipinfo.io/city) > /dev/null
|
||||||
region=$(httpGet ipinfo.io/region) > /dev/null
|
region=$(httpGet ipinfo.io/region) > /dev/null
|
||||||
region=$(echo "$region" | tr -dc '[:upper:]')
|
region=$(echo "$region" | cut -c "1-2" | tr "[:lower:]" "[:upper:]")
|
||||||
httpGet $locale.wttr.in/$city,$region$1
|
httpGet $locale.wttr.in/$city,$region$1
|
||||||
else ## otherwise we are going to use longitude and latitude
|
else ## otherwise we are going to use longitude and latitude
|
||||||
location=$(httpGet ipinfo.io/loc) > /dev/null
|
location=$(httpGet ipinfo.io/loc) > /dev/null
|
||||||
|
@ -6,7 +6,7 @@ if [[ -d $HOME/.cache/ytview ]]; then rm -rf $HOME/.cache/ytview/; fi
|
|||||||
|
|
||||||
player=""
|
player=""
|
||||||
configuredClient=""
|
configuredClient=""
|
||||||
currentVersion="1.19.1"
|
currentVersion="1.19.2"
|
||||||
flag=""
|
flag=""
|
||||||
|
|
||||||
## This function determines which http get tool the system has installed and returns an error if there isnt one
|
## This function determines which http get tool the system has installed and returns an error if there isnt one
|
||||||
|
Loading…
Reference in New Issue
Block a user