Commit 24b2ea7d authored by nimrod's avatar nimrod
Browse files

- Updated the ansible-desktop-playbooks submodule.

- Added urlencode/ urldecode shell aliases (rely on Perl and the URI
module, added to the ansible-desktop-playbooks).
- Added a shell function for searching with DuckDuckGo with Lynx.
parent 88a55d15
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -99,6 +99,8 @@ alias tolower='awk "{print tolower(\$0)}"'
# shellcheck disable=SC2142
alias toupper='awk "{print toupper(\$0)}"'
alias wifi-portal='curl --silent --fail --write-out "%{redirect_url}" --output /dev/null http://detectportal.firefox.com/success.txt'
alias urlencode='perl -MURI::Escape -ne "chomp;print uri_escape(\$_), \"\n\""'
alias urldecode='perl -MURI::Escape -ne "chomp;print uri_unescape(\$_), \"\n\""'

deduce_aws_region () {
    AWS_DEFAULT_REGION="$(curl --silent \
@@ -147,5 +149,9 @@ bfg () {
    java -jar "$HOME/Downloads/bfg.jar" "$@"
}

ddg () {
    lynx "https://duckduckgo.com/lite/?q=$(echo "$@" | urlencode)"
}

# shellcheck disable=SC1090
. "$HOME/Documents/Shore/bundle_certs/bundle_certs"
Original line number Diff line number Diff line
Subproject commit 3d6891c977171e24deab35d0a345254a6ce0b2a3
Subproject commit d243c2e7ca803ec5aea0077e4271508caa4716a7