---
title: Making cd in bash a little better
date: 2014-07-12 08:17
slug: making-cd-in-bash-a-little-better
categories:
- Code
tags:
- quicktip
- terminal
---

The Bash command `cd` is pretty good with tab completion (though not as good as Z shell). I often want to complete a path like `~/Scripts/`, though, and get caught up on directories such as `~/ScriptingAdditions`, which I never need to get to through Terminal. There's an easy way to ignore those pesky directories, though, using the `$FIGNORE` variable.

In my `.bash_profile`, I just include:

	export FIGNORE="Application Scripts:Applications (Parallels):ScrivWatcher:ScriptingAdditions"

The directories listed in `$FIGNORE` will always be ignored by `cd` tab completion. Problem solved.

---

Brett is a writer and developer living in Minnesota, USA. You can follow him as ttscoff. This content is supported by readers like you. [More about Brett](https://brettterpstra.com/contact.md), including social links.

Copyright © 2026 Brett Terpstra. All rights reserved.
