How do I create a Bash alias?

You can add an alias or a function in your startup script file. Usually this is .bashrc, .bash_login or .profile file in your home directory. Since these files are hidden you will have to do an ls -a to list them. If you don’t have one you can create one. If I remember correctly, when … Read more

Upgrade all the casks installed via Homebrew Cask

There is now finally an official upgrade mechanism for Homebrew Cask (see Issue 3396 for the implementation)! To use it, simply run this command: brew upgrade –cask However this will not update casks that do not have versioning information (version :latest) or applications that have a built-in upgrade mechanism (auto_updates true). To reinstall these casks … Read more

(Mac) -bash: __git_ps1: command not found

You’ve installed the version of git-completion.bash from master – in git’s development history this is after a commit that split out the __git_ps1 function from the completion functionality into a new file (git-prompt.sh). The commit that introduced this change, which explains the rationale, is af31a456. I would still suggest that you just source the version … Read more

lose vim colorscheme in tmux mode

I had the same problem. Only difference was I am using solarize rather then molokai. To fix the issue, I have set up an alias in ~/.bashrc: alias tmux=”TERM=screen-256color-bce tmux” And set up the default-terminal option in ~/.tmux.conf: set -g default-terminal “xterm” Lastly, do $ source ~/.bashrc to load new alias.

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)