Skip to content

Instantly share code, notes, and snippets.

View chrisiwisi's full-sized avatar

ChristianWieser chrisiwisi

View GitHub Profile
@chrisiwisi
chrisiwisi / .bashrc
Last active September 20, 2025 11:43
A unix function that combines fzf, fd and cd to interactively search the current directory and navigate to the selected object. Also uses the tree command to visualize folder contents.
cdf() {
local depth
local count
count=$(find . -mindepth 1 -maxdepth 10 | wc -l)
# Scale depth based on entry count
if [ "$count" -lt 20000 ]; then
depth=10
mode="deep"