Productivity


Global Vim-style Navigation On Linux

Dec. 17, 2021 |  Categories:  Linux   Productivity  

Tested on Ubuntu 21.10.
Source: https://unix.stackexchange.com/questions/414926/bind-capshjkl-to-arrow-keys-caps-to-esc

Create the configuration file:

Add the following to ~/.my_keyboard:

```bash keycode 66 = Mode_switch keysym h = h H Left keysym l = l L Right keysym k = k K Up keysym j = j J Down keysym u = u U Prior keysym i = i I

...

Git Hook For Commit Message Style

Sept. 25, 2021 |  Categories:  Scripting   Source Control   Productivity  

Description:

This hook can be used to check commit message styling. Failure of this script will prevent the commit from being made and display an appropriate error message.


Use the hook globally:

  1. Create a directory for git hooks and tell git where to find it:
    git config --global init.templatedir '~/.git-templates'
    mkdir -p ~/.git-templates/hooks

2.

...

SSHFS Configuration

Sept. 11, 2020 |  Categories:  macOS   Linux   Productivity  

SSHFS allows us to mount a remote filesystem and work with it locally. This means that instead of using the terminal to work with files on the server, we can simply mount the server’s filesystem with SSHFS and then use our local file explorer to navigate and manipulate files as though they existed on our laptop or desktop.

  1. Install sshfs:
    1. Linux: ```sudo apt-get install sshfs
...