A little lookup for commands I use frequently
- Commit all edited files and add a message
git commit -a -m "My commit"
- Add all new files
git add .
#!/usr/bin/env bash | |
curl https://s3.amazonaws.com/heroku-jvm-buildpack-vi/vim-7.3.tar.gz --output vim.tar.gz | |
mkdir vim && tar xzvf vim.tar.gz -C vim | |
export PATH=$PATH:/app/vim/bin |
A little lookup for commands I use frequently
git commit -a -m "My commit"
git add .
echo copying local history file | |
history -a | |
cp .bash_history full_history | |
HOSTS="machine1.example.com machine2.example.com" | |
for i in $HOSTS; do | |
echo copying history file from $i | |
scp $i:~/.bash_history tmp_history.txt | |
cat tmp_history.txt >>full_history | |
wc -l tmp_history.txt |