Maciej Janicki's website

shell

2020-09-20 Having all PDFs just a few keystrokes away

I tend to have a lot of PDF files on my computer: books, science papers, presentations… I often need to quickly open one of them: check a theoretical detail in a book related to what I’m doing or a reference in a paper I’m reading. With the help of dmenu and a short shellscript, I have found a way to make this process as quick and unintrusive as possible.

Tags: desktop dmenu shell


2019-07-27 Change to another shell's working directory

Today I’m going to share another trick for changing a shell’s working directory involving the fuzzy finder. Let us assume that you are doing something in a terminal and then need suddenly need another window for working in the same directory. There is an easy way to do this. It involves defining a function, which shows the current directories of all running shells in fzf, so that we can quickly choose one of them and navigate to it.

Tags: shell fzf


2019-06-06 Navigate through filesystem quickly with fzf

Navigating to the right directory is one of the most unnecessarily time-consuming tasks while working in the shell. Have you ever found yourself typing long paths by hand and repeatedly pressing Tab because you forgot the name of some directory? Personally, I use a couple of tricks to avoid typing paths. Here’s the most important one.

Tags: shell fzf