Skip to content

Instantly share code, notes, and snippets.

@nicedreams
nicedreams / .shell_bookmarks
Last active June 12, 2022 00:58
Shell Bookmarks
#!/bin/bash
# SHELL BOOKMARKS with Completion
# ----------------------------------------------------------------------------
# Usage: Source this file in your ~/.bashrc - Use `cdb` command
# Help: cdb --help
#
# 2021-09-14 - Ken Bernier <kbernier@gmail.com>
#
# Script manages symlinks of directories to create bookmark function with
# name completion. All bookmarks are symlinks stored in $DIRBOOKMARKS.
@nicedreams
nicedreams / bmenu.sh
Last active October 2, 2023 23:46
bmenu - Shell application launcher using fzf
#!/bin/bash
# bmenu - Shell application launcher using fzf.
# Searches $PATH for executable files and runs selected program.
# Fzf preview window shows info about file.
# Requires: fzf
# Usage: As script like ~/bin/bmenu or copy/paste bmenu() function in ~/.bashrc
bmenu() {
launchapp=$(IFS=':'; \
for p in ${PATH}; \