vim settings are important for every vim user and you shouldn’t have to use a vanilla vim setup just because you ssh into a VM or set up a new computer. Since most vim settings have zero personal data, the most convenient thing to do is to upload your vim directory+settings onto the internet for the world to bask…
All posts by theptrk
Mac Unix Command Basics for Beginners
These are useful unix commands that are entered through a Terminal shell prompt. These commands are actually names of Unix programs that usually sit in a folder called /bin where am i? pwd How to check the current directory $ pwd learn more about anything – man How to bring up the manual page for a command:…
Top 10 bash_profile aliases
You are operating with limited time and limited brain power to finish your programs with enough time to go outside and breath fresh air Knowing this, its way too tedious to type out commands like git diff –cached which can be shortcut to gdc with an alias. An alias will allow you to create shortcuts with your own command…
git gotchas
Gotcha 1: git config? “Oops, I’ve been using git without setting my git config?” If youdon’t set your computers git config, it’ll likely choose a default email for you – something like Patrick@MacBookAir.com. That means, even if you push this to Github, your account will not get the commits. How to config your git author…
vim: how to turn on syntax highlighting
Normal mode How to turn on syntax highlighting for your current session :syntax on .vimrc configuration How to default syntax to “on” for all vim sessions Remember to always back up your config files, simply add this to your .vimrc syntax on Try different colors How to cycle through available color schemes for your current session…
Set up your dotfiles, config files
Sometimes your computer explodes. Sometimes your roommate spills water on it. If you keep your config files uploaded to github/gitlab, you can avoid recreating your dotfiles (.vimrc, .bash_profile, .sh, .zshrc) and reconfiguring every laptop and virtual machine you encounter. * this is assuming you have already version controlled your configs (examples: bash, vim) Step 1: Upload…
Setting up a new computer (Mac – applications)
Change these System Preferences immediately 1 – MAX OUT your Keyboard key repeat and shorten your delay 2 – Change your CAPS LOCK into (^ Control). Think about it, unless you are constantly yelling on the internet, you never really use CAPS LOCK Download these Apps * Alfred this is so much better than spotlight…
What are the Mac symbols?
Mac Symbols If you are loyal to your 2013 Macbook Air, here’s the new mac keyboard buttons. What is the mac symbol for Control? Control (or Ctrl) ⌃ The Control key was originally responsible for entering control characters (or non-printing characters) in terminal applications. The first mac did not have a control key but it was later…
Symbolic Links, symlinks, files that point to files
Sometimes, when working with directories and files, we want to reference the same file in a different directory. This is most apparent when you want to upload dotfiles and config on github so you can backup and pull down these onto any computer. Lets get started and you’ll see how my setup will help your…
Your first commit – How to start using git
git is a version control system that allows you to keep track of all the changes you make to your code, writing and anything text. Instead of saving the current state of your files, git saves the changes you make to files. Imagine you create a file called “my_file.txt” and later this to your git…