A dot-file is generally any file whose name begins with a full stop. In Unix-like operating systems, dot-file is synonymous with hidden file.
Questions tagged [dotfiles]
205 questions
126
votes
3 answers
What is a .un~ file or or why does Vim in the Terminal make the .un~ file?
I've noticed I have some dotfiles that end with .un~, for example I have a .vividchalk.vim.un~, but I'm not sure where that came from. It seems like they are created when I use Vim in the Terminal. What are these files? Can have them remove…

kaplan
- 4,109
- 6
- 30
- 35
122
votes
9 answers
How can I grep hidden files?
I am searching through a Git repository and would like to include the .git folder.
grep does not include this folder if I run
grep -r search *
What would be a grep command to include this folder?

Zombo
- 1
- 62
- 391
- 407
109
votes
4 answers
What's the difference between Git ignoring directory and directory/*?
I'm confused about what's the correct way to ignore the contents of a directory in git.
Assume I have the following directory structure:
my_project
|--www
|--1.txt
|--2.txt
|--.gitignore
What's the difference…

Aaron Shen
- 8,124
- 10
- 44
- 86
89
votes
3 answers
Is there a .mocha file where I can specify defaults such as --no-colors?
I'd like to set some defaults for mocha without having to type them each time. Does mocha look for a config file / dotfile anywhere, as jshint looks for .jshintrc and npm looks for package.json?

mcandre
- 22,868
- 20
- 88
- 147
63
votes
1 answer
How to show hidden files (dotfiles) with windows powershell
When I have hidden files, like dotfiles or a .git directory:
How can I list those files and directories in Powershell?
Neither Get-ChildItem, dir nor ls seem to show them.

fuma
- 5,067
- 4
- 35
- 39
61
votes
5 answers
Adding your .vim ~/.vimrc to github (aka dot files)
I have seen a few people that have git repos with their dot files. I'm wondering if they just
cd ~/
git init
git add .vimrc
// etc
? And then that's how they keep it up to date? Or do they probably make copies and sync them?
What strategy do you…

John Tomson
- 1,411
- 2
- 13
- 14
58
votes
4 answers
Should I use quotes in environment path names?
I'm in the process of cleaning up all my config files in an attempt to make them as readable as possible. I've been looking for a style guide on the use of quotes while exporting paths in, for example, a ~/.bashrc file:
export…

Cabbage soup
- 1,344
- 1
- 18
- 26
57
votes
3 answers
How can I show dotfiles in Textmate 2?
I recently upgraded to Textmate 2 and now my dotfiles are not showing up in the file browser. Obviously, this is important when working with stuff like .htaccess files.
Is there a way to enable this feature?
user2693845
51
votes
2 answers
free visual editor for graph (dot) files
Is there a free (as in "cheers"), linux-compatible, interactive visual editor for graphviz or other graphs? aptitude seems to be drawing a blank.
edit: "cheers" means both "beer" and "speech". meta-edit: I guess it should be "free as in…

intuited
- 23,174
- 7
- 66
- 88
41
votes
4 answers
Do dotfiles have a file extension?
Do dotfiles, such as .htaccess .gitignore and .config, have a file extension and no filename or are they considered to have a filename and no extension?
I'm trying to implement some utility functions in PHP, which is notorious for doing things…

zzzzBov
- 174,988
- 54
- 320
- 367
38
votes
6 answers
How to force git to add dotfiles to repository
Git seems to always ignore these.
When I type git add ., dotfiles in GIT_DIR are added, but not from subdirectories. On the other hand, git add subdir/.dotfile won't work.
I tried git add -f and putting !.* in GIT_DIR/.git/info/exclude.

Sergey Kovalev
- 863
- 2
- 9
- 14
29
votes
3 answers
How to maintain (mostly) parallel branches with only a few difference
Scenario: I'm trying to get my unix dot-files under git. I have to work between (at least) the cygwin environment and some standard linux distros (ubuntu and opensuse), and I have files/lines of code that are only specific to, say, cygwin. Since I…

polyglot
- 9,945
- 10
- 49
- 63
27
votes
10 answers
How to use Github to manage dotfiles?
I stored my dotfiles in github, with lots pains, because of no automation. I have to update it myself.
Is there a way that can auto install/update/sync dotfiles? I mean in a fresh server, I download dotfiles and exec a install script to copy…

nfpyfzyf
- 2,891
- 6
- 26
- 30
26
votes
5 answers
Why does .lesshst keep showing up in my ~
I never use less, and have always used more. It is what I was introduced to, which is probably why I use more more instead of using less more. ( Sorry, that is going to sound a bit of a mess :) )
I just tried less and couldn't even quit out of it,…

Scott
- 571
- 1
- 4
- 12
25
votes
4 answers
Is It A Bad Practice to List Ruby Version in Both Gemfile and .ruby-version Dotfile?
My latest Rails project is more or less and experiment for me to break lots of things and learn in the process. I have the latest version of Ruby specified in my gemfile:
ruby '2.2.3'
And I also have a .ruby-version dotfile in the project, with the…

Todd
- 2,824
- 2
- 29
- 39