Skip to content

Commit

Permalink
Add alias to do a WikiPedia search
Browse files Browse the repository at this point in the history
  • Loading branch information
abhinav-nath committed Oct 15, 2022
1 parent 94f9803 commit 4c5ebbf
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions dev-setup/.aliases
Original file line number Diff line number Diff line change
Expand Up @@ -51,3 +51,6 @@ alias c="pbcopy"
alias cleanup="find . -type f -name '*.DS_Store' -ls -delete"

alias mate="/Applications/TextMate.app/Contents/Resources/mate"

# Search WikiPedia
wiki='python -c '\''import sys, wikipedia; print("Please provide a search query!") if len(sys.argv) < 2 else print(wikipedia.summary(sys.argv[1]))'\'

0 comments on commit 4c5ebbf

Please sign in to comment.