AWS
now we spent $15.52 on AWS
Tmux
why do I need to source ~/.bashrc everytime starting up another tmux session/window/pane?
- no you don’t have to
- according to the answer from Chris Page, only the login startup script (which is ??) is run
- we need to add source ~/.bashrc to ~/.bash_profile (create such file if it doesn’t exist)
- you may need tmux source-file ~/.tmux.conf to reload the tmux config – works like a charm for me now
Vim
how to update vim to version 8 on centos7
sudo curl -L https://copr.fedorainfracloud.org/coprs/mcepl/vim8/repo/epel-7/mcepl-vim8-epel-7.repo -o /etc/yum.repos.d/mcepl-vim8-epel-7.repo # <-- add the repository first
sudo yum update -y vim*
- I have to update the version since YouCompleteMe needs higher version
Sed
How to replace some strings in a file from command line?
- sed
- perhaps awk in some special scenearios?
How to replace strings after some specific strings from command line?
- sed
- and try this if sed is gonna be executed on OSX
OSX
if assocaitive array fails on shell scripts, it might be due to the elder version of bash
- what happend after I “brew”
==> Summary 🍺 /usr/local/Cellar/bash/4.4.12: 146 files, 8.8MB