diff --git a/.bashrc b/.bashrc index 2604482333e3fcae3702dc0c71c3c2ee52e9ebeb..b5d68382371ee5d64403b6daa34e74ac9be83173 100644 --- a/.bashrc +++ b/.bashrc @@ -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" diff --git a/Documents/Shore/Ansible/ansible-desktop-playbooks b/Documents/Shore/Ansible/ansible-desktop-playbooks index 3d6891c977171e24deab35d0a345254a6ce0b2a3..d243c2e7ca803ec5aea0077e4271508caa4716a7 160000 --- a/Documents/Shore/Ansible/ansible-desktop-playbooks +++ b/Documents/Shore/Ansible/ansible-desktop-playbooks @@ -1 +1 @@ -Subproject commit 3d6891c977171e24deab35d0a345254a6ce0b2a3 +Subproject commit d243c2e7ca803ec5aea0077e4271508caa4716a7