vars/aliases for confluence/trello/browser
This commit is contained in:
parent
b3db5095dd
commit
4002d62840
@ -35,7 +35,7 @@ alias n='newissues'
|
|||||||
alias backlog=cicdlist
|
alias backlog=cicdlist
|
||||||
alias bakclog='backlog'
|
alias bakclog='backlog'
|
||||||
alias b='backlog'
|
alias b='backlog'
|
||||||
alias mybacklog="jira issue ls && asana"
|
alias mybacklog="jira issue ls && asana && confluencetasks && trello_web"
|
||||||
alias mb='mybacklog'
|
alias mb='mybacklog'
|
||||||
alias myissues='mb'
|
alias myissues='mb'
|
||||||
alias me='mb'
|
alias me='mb'
|
||||||
|
@ -32,54 +32,63 @@ note() {
|
|||||||
printf "${underline}${bold}${blue}Note:${reset} ${blue}%s${reset}\n" "$@"
|
printf "${underline}${bold}${blue}Note:${reset} ${blue}%s${reset}\n" "$@"
|
||||||
}
|
}
|
||||||
# Browser interaction utilities
|
# Browser interaction utilities
|
||||||
|
function browse() {
|
||||||
|
open -na "$DEFAULT_BROWSER" --args "$1"
|
||||||
|
}
|
||||||
function google() {
|
function google() {
|
||||||
open -na "Google Chrome" --args "https://www.google.com/search?q=$*"
|
browse "https://www.google.com/search?q=$*"
|
||||||
}
|
}
|
||||||
function stackoverflow() {
|
function stackoverflow() {
|
||||||
open -na "Google Chrome" --args "https://www.google.com/search?q=site:stackoverflow.com $*"
|
browse "https://www.google.com/search?q=site:stackoverflow.com $*"
|
||||||
}
|
}
|
||||||
function github() {
|
function github() {
|
||||||
open -na "Google Chrome" --args "https://github.com/search?q=$*"
|
browse "https://github.com/search?q=$*"
|
||||||
}
|
}
|
||||||
function hacker() {
|
function hacker() {
|
||||||
open -na "Google Chrome" --args "https://hn.algolia.com/?sort=byDate&query=$*"
|
browse "https://hn.algolia.com/?sort=byDate&query=$*"
|
||||||
}
|
}
|
||||||
function gmail() {
|
function gmail() {
|
||||||
open -na "Google Chrome" --args "https://mail.google.com/mail/u/0"
|
browse "https://mail.google.com/mail/u/0"
|
||||||
}
|
}
|
||||||
function gmail2() {
|
function gmail2() {
|
||||||
open -na "Google Chrome" --args "https://mail.google.com/mail/u/1"
|
browse "https://mail.google.com/mail/u/1"
|
||||||
}
|
}
|
||||||
function cicdboard() {
|
function cicdboard() {
|
||||||
open -na "Google Chrome" --args "$JIRA_URL/secure/RapidBoard.jspa?rapidView=457&view=planning.nodetail"
|
browse "$JIRA_URL/secure/RapidBoard.jspa?rapidView=457&view=planning.nodetail"
|
||||||
}
|
}
|
||||||
function cicddashboard() {
|
function cicddashboard() {
|
||||||
open -na "Google Chrome" --args "$JIRA_URL/secure/Dashboard.jspa?selectPageId=13131"
|
browse "$JIRA_URL/secure/Dashboard.jspa?selectPageId=13131"
|
||||||
}
|
}
|
||||||
function issues() {
|
function issues() {
|
||||||
jira issue jql "status = Open AND text ~ \"$*\" ORDER BY Created DESC"
|
jira issue jql "status = Open AND text ~ \"$*\" ORDER BY Created DESC"
|
||||||
}
|
}
|
||||||
function calendar() {
|
function calendar() {
|
||||||
open -na "Google Chrome" --args "https://calendar.google.com/calendar/r?tab=mc"
|
browse "https://calendar.google.com/calendar/r?tab=mc"
|
||||||
}
|
}
|
||||||
function asana() {
|
function asana() {
|
||||||
open -na "Google Chrome" --args "https://app.asana.com"
|
browse "https://app.asana.com"
|
||||||
|
}
|
||||||
|
function confluencetasks() {
|
||||||
|
browse "$CONFLUENCE_URL/plugins/inlinetasks/mytasks.action"
|
||||||
|
}
|
||||||
|
function trello_web() {
|
||||||
|
browse "$TRELLO_BOARD_URL"
|
||||||
}
|
}
|
||||||
function bookmarks() {
|
function bookmarks() {
|
||||||
open -na "Google Chrome" --args "https://github.com/MorganGeek/bookmarks/blob/master/README.md"
|
browse "https://github.com/MorganGeek/bookmarks/blob/master/README.md"
|
||||||
}
|
}
|
||||||
function spotify() {
|
function spotify() {
|
||||||
open -na "Google Chrome" --args "https://open.spotify.com/search/$*"
|
browse "https://open.spotify.com/search/$*"
|
||||||
}
|
}
|
||||||
function lob() {
|
function lob() {
|
||||||
open -na "Google Chrome" --args "https://lobste.rs"
|
browse "https://lobste.rs"
|
||||||
}
|
}
|
||||||
function logtalk() {
|
function logtalk() {
|
||||||
path_swilgt=$(find /usr/local/Cellar/logtalk -name "*swilgt.sh" 2>/dev/null)
|
path_swilgt=$(find /usr/local/Cellar/logtalk -name "*swilgt.sh" 2>/dev/null)
|
||||||
sh "$path_swilgt"
|
sh "$path_swilgt"
|
||||||
}
|
}
|
||||||
function archive() {
|
function archive() {
|
||||||
open -na "Google Chrome" --args "https://web.archive.org/web/*/$*"
|
browse "https://web.archive.org/web/*/$*"
|
||||||
}
|
}
|
||||||
function git_listobjectsbysize() {
|
function git_listobjectsbysize() {
|
||||||
tempFile=$(mktemp)
|
tempFile=$(mktemp)
|
||||||
@ -103,6 +112,15 @@ function top_commands_full() {
|
|||||||
local filter="$1"
|
local filter="$1"
|
||||||
history | \cat | awk '{$1=$1};1' | sed 's/^[0-9 TAB]*//g' | awk '{CMD[$0]++;count++;}END { for (a in CMD)print CMD[a] " " CMD[a]/count*100 "%\t" a; }' | grep "$filter" | sort -nr | nl | head -n50
|
history | \cat | awk '{$1=$1};1' | sed 's/^[0-9 TAB]*//g' | awk '{CMD[$0]++;count++;}END { for (a in CMD)print CMD[a] " " CMD[a]/count*100 "%\t" a; }' | grep "$filter" | sort -nr | nl | head -n50
|
||||||
}
|
}
|
||||||
|
function suggest_aliases() {
|
||||||
|
while read -r line
|
||||||
|
do
|
||||||
|
local matching_aliases=$(ag "$line")
|
||||||
|
if [ ! -z "$matching_aliases" ]; then
|
||||||
|
echo "there is an alias for $line :\n$matching_aliases\n"
|
||||||
|
fi
|
||||||
|
done < <(top_commands_full | awk '{ $1=""; $2=""; $3=""; print}' | awk 'NF' | awk '{$1=$1};1' | awk -v COUNT=1 'NF>COUNT' | head -20)
|
||||||
|
}
|
||||||
function istherenewissues() {
|
function istherenewissues() {
|
||||||
LASTISSUE=$(newissues | sed $'s,\x1b\\[[0-9;]*[a-zA-Z],,g' | awk 'FNR==2{print $2}')
|
LASTISSUE=$(newissues | sed $'s,\x1b\\[[0-9;]*[a-zA-Z],,g' | awk 'FNR==2{print $2}')
|
||||||
if [[ -f "$HOME/.newjiraissue" ]]
|
if [[ -f "$HOME/.newjiraissue" ]]
|
||||||
@ -399,7 +417,7 @@ function rssadd {
|
|||||||
newsboat
|
newsboat
|
||||||
}
|
}
|
||||||
function bookmarkadd {
|
function bookmarkadd {
|
||||||
ansible 127.0.0.1 -m lineinfile -a "path=~/Code/bookmarks/README.md insertafter='"$1"' line='* "$2"'"
|
ansible 127.0.0.1 -m lineinfile -a "path=$HOME/Code/bookmarks/README.md insertafter='"$1"' line='* "$2"'"
|
||||||
}
|
}
|
||||||
function backupgithub {
|
function backupgithub {
|
||||||
curl -sL "https://api.github.com/users/$1/repos" | jq -r '.[] | .ssh_url' | xargs -n1 git clone --mirror --no-hardlinks
|
curl -sL "https://api.github.com/users/$1/repos" | jq -r '.[] | .ssh_url' | xargs -n1 git clone --mirror --no-hardlinks
|
||||||
|
@ -128,9 +128,12 @@ export BW_SESSION=""
|
|||||||
export JENKINS_URL=""
|
export JENKINS_URL=""
|
||||||
export JENKINS_SECRET=""
|
export JENKINS_SECRET=""
|
||||||
export JIRA_URL=""
|
export JIRA_URL=""
|
||||||
|
export CONFLUENCE_URL=""
|
||||||
export PROXY_HOST=""
|
export PROXY_HOST=""
|
||||||
export COLORPIC_APIKEY=""
|
export COLORPIC_APIKEY=""
|
||||||
export VAULT_PASSWORD_FILE=""
|
export VAULT_PASSWORD_FILE=""
|
||||||
|
export DEFAULT_BROWSER=${DEFAULT_BROWSER:-'Google Chrome'}
|
||||||
|
export TRELLO_BOARD_URL=""
|
||||||
|
|
||||||
if test -f "$HOME/.scripts/secrets.sh"; then
|
if test -f "$HOME/.scripts/secrets.sh"; then
|
||||||
chmod +x "$HOME/.scripts/secrets.sh"
|
chmod +x "$HOME/.scripts/secrets.sh"
|
||||||
|
Loading…
Reference in New Issue
Block a user