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
0 answers

Loading of .bashrc fails when I open "first" terminal. But is loaded when I open tmux and/or I try to create new window with Ctrl+SHIFT+N

I've created my own dotfile repository and this is the install.sh file, that load all stuffs: #!/bin/bash clear echo "Installation started" SCRIPT=$(readlink -f $0) SCRIPTPATH=`dirname $SCRIPT` cd $SCRIPTPATH && git submodule update -i echo…
sensorario
  • 20,262
  • 30
  • 97
  • 159
0
votes
1 answer

How to make a command string executing bash ("bash -c") to read the .bashrc

When I call a bash shell from another program to execute an command string I call bash -c This works pretty well, but the shell which gets invoked does not read the startup file .bashrc. I need this for environment variables and…
halloleo
  • 9,216
  • 13
  • 64
  • 122
0
votes
1 answer

zsh doesn't use my $PATH correct

I try to ran a script from ~/.dotfiles/bin, but zsh doesn't got it instead the bash: ➜ ~ cat ~/.dotfiles/bin/dotfiles-test #!/bin/bash echo 'hello world' ➜ ~ echo…
Anton Shuvalov
  • 3,560
  • 3
  • 16
  • 20
0
votes
1 answer

Checking if a hidden file exists with Serverspec

I am using Test-Kitchen and Serverspec for my integration tests. I want to use a Serverspec file resource to verify whether a hidden file exists, in this case .gemrc. Here is my spec configuration: require 'spec_helper' describe "Checking the…
Robert
  • 10,403
  • 14
  • 67
  • 117
0
votes
1 answer

Pip bash completion not working on Mac Os X

I am on a Mac Snow Leopard, python is installed from homebrew and it's working, I have two custom bash completion script, one for pip and the other one for django. They used to work but they don't work anymore after messing up with my dotfiles. The…
Leonardo
  • 4,046
  • 5
  • 44
  • 85
0
votes
1 answer

Traverse subdirectores and symlink certain files (but not all)

I have following directory structure that I pull from github; dotfiles/bash .bashrc .bash_profile .some_other env dotfiles/tmux/ .tmux.conf dotfiles/???/ .whatever bash/In my bashcode (below) I'd like to (in my script…
b0red
  • 47
  • 7
0
votes
1 answer

Vim: Custom mapping for surround plugin to surround visual selection?

I intend to surround my visual selection, same as sublime and other editors. Since I already have surround plugin installed, therefore viwS" does surrounds the selected word with " and similarly for ', etc Therefore following is my attempt…
Yugal Jindle
  • 44,057
  • 43
  • 129
  • 197
0
votes
1 answer

How to implement per user .emacs style config in clojure application?

I have a Clojure application which process some data in our company. So I want to obtain possibility of its customization throw .myapp.clj file or something like this. It must be a simple script in clojure in which user can define own data…
proofit404
  • 281
  • 1
  • 13
0
votes
1 answer

vim getting rid of special character ^I

I have installed some dot files in vim. The files that I edit now works fine but some file which I don't own sometimes display special characters as below. 39 struct {^I^I^I^I^I^I^I^I\ 40 ^Istruct type *tqe_next;^I/* next element */^I^I^I\ 41…
Vihaan Verma
  • 12,815
  • 19
  • 97
  • 126
0
votes
1 answer

ln with dotfiles?

I have a directory with several "dot files". I would like to symlink all these files. I tried $ ln -s /usr/dotfiles/* /usr/test ln: creating symbolic link `/usr/test/*' to `/usr/dotfiles/*': No such file or directory
Zombo
  • 1
  • 62
  • 391
  • 407
-1
votes
0 answers

I can't run a simple backup script in zsh

I'm trying to write a dotfiles installer/initializer script that works in the newer MacOS zsh and I'm having trouble. Here's my script: #!/bin/sh BACKUP_DIR="~/.backup" echo "Checking $BACKUP_DIR directory (This check is broken on zsh but should…
Cliff
  • 10,586
  • 7
  • 61
  • 102
-1
votes
1 answer

how to move ssh-key related files to another directory?

i've been trying to clean up my root directory so that it isn't clustered with random dotfiles. nonetheless, on setting up the ssh-key i came to a dead-end, where i wouldn't find a way to migrate known_hosts file to the other direction…
Lanny
  • 1
  • 1
-1
votes
1 answer

Cannot add plugins in vimrc

Here is my vimrc call plug#begin('~/.vim/plugged') call plug#end() I am getting this error , -bash: .vimrc: line 3: syntax error near unexpected token `(' -bash: .vimrc: line 3: `call plug#begin('~/.vim/plugged')' Couldn't figure why, any idea?…
RasenRhino
  • 47
  • 5
-1
votes
1 answer

How to create a new edge using existing nodelabel/headlabel in graphviz/dotEditor without duplicating a new one

digraph G { "DUT0" [label="DUT0"]; "DUT1" [label="DUT1"]; "DUT0" -> "DUT1" [headlabel="1", taillabel="2"]; "DUT1" -> "DUT1" [taillabel="1", headlabel="3"]; } I am using the below script in graphviz dotEditor to create my graph. The…
Om Gupta
  • 1
  • 1
-1
votes
1 answer

Is there a way i can recover my .bashrc file?

Is there a way I can recover my .bashrc file? I accidentally removed the contents within the file and saved.
1 2 3
13
14