A super useful tool when doing PR's or checking your own work during a big refactor is the silver searcher. Its a sup...
Posts tagged: bash
All posts with the tag "bash"
Creating a minimal config specifically for git commits has made running much more pleasant. It starts up Much faster,...
I really appreciate that in linux anything can be scripted, including setting the wallpaper. So everytime I disconnec...
Stow is an incredible way to manage your dotfiles. It works by managing symlinks between your dotfiles directory and ...
tmux popups can be sized how you like based on the % width of the terminal on creation by using the flags (h, w, x, y...
I was completely stuck for awhile. copier was not replacing my template variables. I found out that adding all these ...
I've been looking for a templating tool for awhile that works well with single files. My go to templating tool does n...
One of the most useful skills you can acquire to make you faster at almost any job that uses a computer is getting go...
pyenv provides an easy way to install almost any version of python from a large list of distributions. I have simply ...
Installing brew on linux proved quite easy and got pyenv running for me within 4 commands.
When I first moved to vim from and ide like vscode or sublime text one of my very first issues was trying to preview ...
Code Review from the comfort of vim | Diffurcate
I often review Pull requests from the browser as it just makes it so easy to see the diffs and navigate through them, but there comes a time when the diffs get really big and hard to follow. That’s when its time to bring in the comforts of vim.
This all stems from the great plugin by AndrewRadev. It breaks a down into a project. So rather than poping into a pager from git diff, you can pipe to diffurcate and it will setup a project in a tmp directory for you and you can browse this project just like any other except it’s just a diff.
...
Open files FAST from zsh | or bash if thats your thing
I am often in a set of tmux splits flying back and forth, accidentally close my editor, so when I come back to that split and hit my keybinds to edit files I enter them into zsh rather than into nvim like I intended. Today I am going to sand off that rough edge and get as similar behavior to nvim as I can with a couple of aliases.
Make sure you check out the YouTube video to see all of my improvements.
...
30 days dotfile ricing
I am challenging myself to 30 days of dotfile ricing. I have been on linux desktop for a few months now and have a pretty good workflow going, I have the coarse edits done to my workflow, but it has some rough edges that need sanded down. It’s time to squash some of those little annoyances that still exist in my setup.
This is primarily going to be focused on productivity, but may have a few things to just look better. This will comprise heavily of aliases, zsh, and nvim config.
...
Update Alternatives in Linux
JUT | Read Notebooks in the Terminal
Trying to read a .ipynb file without starting a jupyter server? jut has you covered.
watch the video version of this post on YouTube
...
Trim unused git branches
Create a Virtual File Gallery with Symlinks
Creating a directory that is a union of several directories can be achieved with a few symlinks at the command line.
Here is how I am creating a virtual directory of all my projects that is a combination of both work and not-work projects. I am creating symlinks for every directory under ~/work and ~/git.
rm -rf ~/projects mkdir ~/projects ln -sf ~/work/* ~/projects ln -sf ~/git/* ~/projects
⚠ Notice that first I am recreating the directory each time. This will ensure that any project that is deleted from their actual directory is removed from the virtual gallery.
...
How to Install micromamba on linux (from the comamnd line only)
I really like using conda (miniconda) as my python virtual environment manager of choice. It’s simple and it includes its own python interpreter using the version that I specify at creation.
from their readme
Mamba is a reimplementation of the conda package manager in C++.
...
Vim Wsl Clipboard
I’ve long used neovim from within windows wsl, and for far too long, I went without a proper way to get text out of it and into windows.
wsl can access clip.exe. You can do some cool things with it, such as cat a file into the clipboard, sending output from a command to the clipboard, or set an autocmd group in vim to send yank to the windows clipboard.
Let’s say you want to send a teammate the tail of a log file over chat. You can tail the file into clip.exe.
...