As easy as 1, 2, 3!
Updated:
- Aug, 08, 2022 update
config
docs for npm 8+ - Jul 27, 2021 add private scopes
- Jul 22, 2021 add dist tags
- Jun 20, 2021 update for
--access=public
- Sep 07, 2020 update docs for
npm version
# put this in your .bash_profile | |
if [ $ITERM_SESSION_ID ]; then | |
export PROMPT_COMMAND='echo -ne "\033];${PWD##*/}\007"; ':"$PROMPT_COMMAND"; | |
fi | |
# Piece-by-Piece Explanation: | |
# the if condition makes sure we only screw with $PROMPT_COMMAND if we're in an iTerm environment | |
# iTerm happens to give each session a unique $ITERM_SESSION_ID we can use, $ITERM_PROFILE is an option too | |
# the $PROMPT_COMMAND environment variable is executed every time a command is run | |
# see: ss64.com/bash/syntax-prompt.html |
# Considering an JSON object like this one: | |
# | |
# { | |
# "store": { | |
# "foo": { | |
# "value":"bar" | |
# } | |
# }, | |
# "anotherstore": { | |
# "wat":{ |
So, you've merged the master branch with itself, and you ended up with a merge commit nobody wanted.
John and Pete are working together on a repo.
$ git log --graph --pretty=oneline --abbrev-commit # an alias I have under 'git lol', but 'gitk' does just fine
* 812492b (master, origin/master, origin/HEAD) Add stuff
#!/usr/bin/expect -f | |
# usage: ./hubottest "hubot help" | |
spawn bin/hubot.coffee | |
sleep 3 | |
expect "Hubot>" | |
send "hubot [lrange $argv 0 10]\n" | |
expect eof |
consumer_key = 'your-consumer-key' | |
consumer_secret = 'your-consumer-secret' | |
access_token = 'your-access-token' | |
access_secret = 'your-access-secret' |