List Git aliases
$ git config –get-regexp alias
$ git config –get-regexp alias
I think you missed this step: source ~/.nvm/nvm.sh You can run this command on the bash OR you can put it in the file /.bashrc or ~/.profile or ~/.zshrc to automatically load it https://github.com/creationix/nvm
rsync is fast and easy: rsync -av –progress sourcefolder /destinationfolder –exclude thefoldertoexclude You can use –exclude multiples times. rsync -av –progress sourcefolder /destinationfolder –exclude thefoldertoexclude –exclude anotherfoldertoexclude Note that the dir thefoldertoexclude after –exclude option is relative to the sourcefolder, i.e., sourcefolder/thefoldertoexclude. Also you can add -n for dry run to see what will be … Read more
NOTE: If you installed postgres using homebrew, see the comment from @user3402754 below. Note that the error message does NOT talk about a missing database, it talks about a missing role. Later in the login process it might also stumble over the missing database. But the first step is to check the missing role: What … Read more
According to the docs on Launching from the command line: Open Visual Studio Code Open the command pallette with Command + Shift + P (or F1) Type Shell in command palette Select Shell Command: Install code in PATH from suggested list That’s it. Now open your terminal type. $ code . To make this change … Read more
As of Mac OS X Lion 10.7, Terminal includes exactly this functionality as a Service. As with most Services, these are disabled by default, so you’ll need to enable this to make it appear in the Services menu. System Preferences > Keyboard > Shortcuts > Services Enable New Terminal at Folder. There’s also New Terminal … Read more
As mentioned in comments to Mark Adelsberger’s answer, this was a default behavior change introduced in Git 2.16. You can turn paged output for git branch back off by default with the pager.branch config setting: git config –global pager.branch false
What I do is say in the Terminal: $ xcrun swift -version Output for Xcode 6.3.2 is: Apple Swift version 1.2 (swiftlang-602.0.53.1 clang-602.0.53) Of course that assumes that your xcrun is pointing at your copy of Xcode correctly. If, like me, you’re juggling several versions of Xcode, that can be a worry! To make sure … Read more
I always wanted to do this and found a nice and easy way of doing it. I wrote down the complete procedure just in case anyone else needs it. First install a 16 kB program called xclip: sudo apt-get install xclip You can then pipe the output into xclip to be copied into the clipboard: cat … Read more
In bash, you should be able to do: kill $(ps aux | grep ‘[p]ython csp_build.py’ | awk ‘{print $2}’) Details on its workings are as follows: The ps gives you the list of all the processes. The grep filters that based on your search string, [p] is a trick to stop you picking up the … Read more