brew install git bash-completion
echo '[ -f /usr/local/etc/bash_completion ] && . /usr/local/etc/bash_completion' >> ~/.bash_profile
See https://github.com/justjanne/powerline-go
Add the following. Note, this is customized to my taste.
# Add powerline-go
function _update_ps1() {
PS1="$($GOPATH/bin/powerline-go \
-newline -cwd-max-depth 5 -mode compatible -colorize-hostname\
$▶ gpg --version
gpg (GnuPG) 2.2.12
libgcrypt 1.8.4
Copyright (C) 2018 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <https://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
find . -type f -print0 | sort -z | xargs -0 shasum -a 256 | shasum -a 256 | awk '{print $1}'
For example, we have the following directory.
test/
├── a
└── b
Alex Smola's new book.
sudo scutil --set HostName ${hostname}
Assuming pbcopy is installed on Mac.
Follow this blog to setup and launch a pbcopy.plist
After setting up OSX, update ~/.ssh/config
to setup remote port forward RemoteForward 2224 127.0.0.1:2224
On remote host, add an executable shell script in path with
python -m http.server
in directory. Identify the <port>
hostname:port