Get Filename From Path in Bash

Directory names can be part of a path even when a Bash script needs only its final component. GNU basename prints that component, while Bash parameter expansion can remove the directory portion from a variable. This article shows how to use both methods and explains what happens when a path ends in a slash. TL;DR

Get Filename From Path in Bash Read More »

How to Use Vim as an IDE

Project work calls for an editor workflow that fits the tools each project uses. An IDE combines editing with project-level tools, and Vim is a modal text editor that you can extend with plugins. I’ll show you how to set Vim’s basic options and add Git actions with vim-fugitive. TL;DR: Build Vim Around the Features

How to Use Vim as an IDE Read More »