Questions tagged [dotfiles]

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.

205 questions
0
votes
1 answer

Home folder in macOS getting cluttered by dotfiles

The home(~) folder in my MacBook Pro is getting heavily cluttered by dotfiles. Is there any way I can neatly organise them. I would like to group related dotfiles together(.eg. .bashrc .bash_profile .bash_history --> .bash folder). And all the…
0
votes
1 answer

Unmatched ". in dotfile - what is the function of " in dotfiles?

I recently ran into this answer when trying to remove highlighting from Vim, after pressing the # key accidentally. I followed the user's code and entered this at the bottom of my .vimrc file: " redraws the screen and removes any search…
Lou
  • 2,200
  • 2
  • 33
  • 66
0
votes
0 answers

for loop and symlinking dotfiles

I am trying to read through dotfile repos in order to learn how to maintain my own dotfiles. Here is an example that I am looking at: pushd homedir > /dev/null 2>&1 for file in .*; do if [[ $file == "." || $file == ".." ]]; then continue …
molleweide
  • 39
  • 1
  • 7
0
votes
1 answer

Automatically add newline at end of curl response body as default setting

Can you configure curl with a dotfile to automatically print responses with the -w '\n' flag?
Ilias Karim
  • 4,798
  • 3
  • 38
  • 60
0
votes
1 answer

Version Control Dot Files (separately)

I wish to version control my .vimrc ,.Xresources and various other dot files for convenience but would like to separate them so all wouldn't be deployed together. Two ideas came to my mind first is to have one git repo and various branches per each…
S.Rad
  • 307
  • 2
  • 10
0
votes
5 answers

How to Load Emacs Configuration File in LISPBOX

I am currently using Lisp in a Box which comes pre-configured to not load the ".emacs" configuration file. I would like to change the shortcut so that Emacs does load this file by default but I cannot find where this piece of code is. Can someone…
mobydick
  • 151
  • 1
  • 8
0
votes
1 answer

Collecting and uploading files with Python

I'm really beginner in python and I have a project I want to collect and upload dotfiles to the user's GitHub account in Linux machines. So if any bad thing happens to your computer or if you want to take back your configurations you can easily…
Levent Kaya
  • 33
  • 1
  • 1
  • 7
0
votes
1 answer

The entity file has changed to a symbolic link

I tried to create a dotfiles directory and manage multiple dot files directly under the home directory. I accidentally set up a symbolic link to multiple unmanaged dot files. If you check directly under the home directory, for example $ ls -la…
user12125604
0
votes
1 answer

CMD + W doesn't work anymore (Macbook / Mojave)

After installing the .dotfiles repo on my new Macbook (Mojave) the keyboard combination CMD + W to close tabs or windows stopped working. I found out that when I press fn + CMD + W it works. How can I switch back to only using CMD + W?
0
votes
1 answer

How can I prevent my script from symlinking itself?

I have adapted a shell script to symlink my dotfiles from a git repository into my home directory. It works well except for one issue... it seems to be creating a symlink of a directory inside the directory itself. In the below script, the .vscode…
Lee Colarelli
  • 151
  • 2
  • 13
0
votes
0 answers

Error in converting a dotfile to image by graphviz

I made a tree graph by anytree module and I want to get a png file out of it. I tried graphviz (dotfile to png) but got an error: What is the problem? Traceback (most recent call last): File "", line 1, in BOM.treegraph() …
0
votes
2 answers

How to check if [dot]folders exist using python

I'm trying to make a python package and I want to take input from the user and save the info in a .example folder in the root directory so that I can access that info later. This is what I implemented but it's not working - def root_path(): …
0
votes
1 answer

check if command exists. if not install it

Trying to write a small script to install/update dotfiles, but I can't get this part to function properly: The array to read files to install: APPARRAY=(curl htop ncdu pydf tree tmux vim) And this is a function that gets called when needed. I'd…
b0red
  • 47
  • 7
0
votes
2 answers

Git PS1 & Bash Subshell Issue (Windows vs Linux)

After trawling google, the bash manpage and other questions here on SO, I have found similar posts but I have failed to determine the cause of this particular issue. I have installed git-prompt.sh locally. All is good in the bash --login shell. It…
SerialPrimate
  • 11
  • 1
  • 5
0
votes
2 answers

Get DOT file from a graph when using DiagrammeR

It looks like DiagrammeR has changed their create_nodes and create_edges functions than it looks on the doc. Also the $dot_code attribute is not there anymore. I can't find the replacement for this. Here is the example code that they had on the…
user9307178