Page 1 of 2 12 LastLast
Results 1 to 10 of 11

Thread: dotfiles in my home dir all linking to /git/dotfiles/

  1. #1

    Angry dotfiles in my home dir all linking to /git/dotfiles/

    I have tried to edit both my .profile, .bashrc, .inputrc and none of them will let me save any changes without throwing an error.

    Code:
    Can't open linked file for writing
    Yet this git/dotfiles folder that it links to doesn’t even exist. I am very new to git only started using it to keep track of few applications i have been working on. But I have no idea why its taken over all my these files. Anybody know why this is?

    OpenSUSE 12.3
    Git 1.8.1.4

    Thanks

  2. #2
    Join Date
    Jun 2008
    Location
    Earth - Denmark
    Posts
    10,730

    Default Re: dotfiles in my home dir all linking to /git/dotfiles/

    On 04/24/2013 09:16 AM, williamfleming wrote:
    >
    > Anybody know why this is?


    please show us the terminal output *and* input, as well as the
    beginning prompt and exit prompt, from

    Code:
    ls -hal .profile
    ls -hal .*rc
    copy/paste the in/output back to this thread using the instructions
    here: http://goo.gl/i3wnr

    if i follow those directions, mi would post a reply like this:

    Code:
    denverd@linux-os114:~> ls -hal .profile
    -rw-r--r-- 1 denverd users 1.3K Jun 29  2011 .profile
    denverd@linux-os114:~> ls -hal .*rc
    -rw-r--r-- 1 denverd users 1.4K Jan  5 11:35 .bashrc
    -rw------- 1 denverd users   29 Mar 18  2012 .dmrc
    -rw-r--r-- 1 denverd users  581 Jun  3  2011 .htoprc
    -rw-r--r-- 1 denverd users  861 May 15  2011 .inputrc
    -rw------- 1 denverd users  346 Jul 26  2012 .kderc
    -rw------- 1 denverd users  625 Feb 27  2012 .toprc
    -rw-r--r-- 1 denverd users 1002 May 15  2011 .vimrc
    denverd@linux-os114:~>
    --
    dd
    http://tinyurl.com/DD-Caveat

  3. #3

    Default Re: dotfiles in my home dir all linking to /git/dotfiles/

    Thanks for the reply.

    Code:
    lrwxrwxrwx 1 william users 35 Jan 30 15:37 .profile -> /home/william/git/dotfiles/_profile
    lrwxrwxrwx 1 william users   34 Jan 30 15:37 .bashrc -> /home/william/git/dotfiles/_bashrc
    -rw------- 1 william users   26 Jan 25 18:36 .dmrc
    -rw-r--r-- 1 william users  561 Mar 22 11:38 .fluxtwitterrc
    lrwxrwxrwx 1 william users   32 Jan 30 15:37 .hgrc -> /home/william/git/dotfiles/_hgrc
    lrwxrwxrwx 1 william users   35 Jan 30 15:37 .inputrc -> /home/william/git/dotfiles/_inputrc
    lrwxrwxrwx 1 william users   35 Jan 30 15:37 .msmtprc -> /home/william/git/dotfiles/_msmtprc
    -rwx------ 1 william users   75 Mar 12 10:14 .netrc
    lrwxrwxrwx 1 william users   33 Jan 30 15:37 .pdbrc -> /home/william/git/dotfiles/_pdbrc
    lrwxrwxrwx 1 william users   36 Jan 30 15:37 .screenrc -> /home/william/git/dotfiles/_screenrc
    -rw-r--r-- 1 william users 8.5K Apr 15 09:37 .vimrc
    That is the output of both commands. As you can see git has just created what I gather to be symbolic links....? But the folder its linked to doesn’t even exist.

  4. #4
    Join Date
    Feb 2009
    Location
    Spain
    Posts
    25,547

    Default Re: dotfiles in my home dir all linking to /git/dotfiles/

    On 2013-04-24 10:56, williamfleming wrote:
    >
    > Thanks for the reply.
    >
    >
    > Code:
    > --------------------
    > lrwxrwxrwx 1 william users 35 Jan 30 15:37 .profile -> /home/william/git/dotfiles/_profile
    > lrwxrwxrwx 1 william users 34 Jan 30 15:37 .bashrc -> /home/william/git/dotfiles/_bashrc
    > -rw------- 1 william users 26 Jan 25 18:36 .dmrc
    > -rw-r--r-- 1 william users 561 Mar 22 11:38 .fluxtwitterrc
    > lrwxrwxrwx 1 william users 32 Jan 30 15:37 .hgrc -> /home/william/git/dotfiles/_hgrc
    > lrwxrwxrwx 1 william users 35 Jan 30 15:37 .inputrc -> /home/william/git/dotfiles/_inputrc
    > lrwxrwxrwx 1 william users 35 Jan 30 15:37 .msmtprc -> /home/william/git/dotfiles/_msmtprc
    > -rwx------ 1 william users 75 Mar 12 10:14 .netrc
    > lrwxrwxrwx 1 william users 33 Jan 30 15:37 .pdbrc -> /home/william/git/dotfiles/_pdbrc
    > lrwxrwxrwx 1 william users 36 Jan 30 15:37 .screenrc -> /home/william/git/dotfiles/_screenrc
    > -rw-r--r-- 1 william users 8.5K Apr 15 09:37 .vimrc
    > --------------------
    >
    >
    > That is the output of both commands. As you can see git has just
    > created what I gather to be symbolic links....? But the folder its
    > linked to doesn’t even exist.


    I'm not familiar with git. Somehow it is configured to control your home
    settings.

    --
    Cheers / Saludos,

    Carlos E. R.
    (from 12.1 x86_64 "Asparagus" at Telcontar)

  5. #5

    Default Re: dotfiles in my home dir all linking to /git/dotfiles/

    Ha I know neither am I , that’s the problem. Any software dev out there familiar with git? Im thinking about removing it if I cant get this solved.. :/

    I cant seem to find anything online about it either.

    Thanks
    William

  6. #6

    Default Re: dotfiles in my home dir all linking to /git/dotfiles/

    williamfleming wrote:
    > Ha I know neither am I , that’s the problem. Any software dev out
    > there familiar with git? Im thinking about removing it if I cant get
    > this solved.. :/
    >
    > I cant seem to find anything online about it either.


    Well, when I typed git dotfiles into google, I got lots of hits, so I
    don't know how you're searching.

    The links I found give me the impression that this is not native
    behaviour of git but something you must have chosen to initiate, so I
    suspect you aren't telling us the whole story.

    And you didn't do as dd asked either; you had to almost but not quite
    follow his request.

    And you're posting in the applications forum instead of the programming
    forum where you might find some programmers.

    All of these are making it more difficult to help you, IMHO. In fact,
    I'd recommend you remove git and forget it, since you don't seem
    temperamentally suited to development. JMHO.

  7. #7
    Join Date
    Jun 2008
    Location
    Groningen, Netherlands
    Posts
    20,037
    Blog Entries
    14

    Default Re: dotfiles in my home dir all linking to /git/dotfiles/

    Merely the install of git does not cause this. What I'd like to see if the output DenverD asks for, not just for your current user, but also for a newly created user.
    Plus: provide all the info about how you got where you are now.
    ° Appreciate my reply? Click the star and let me know why.

    ° Perfection is not gonna happen. No way.

    https://en.opensuse.org/openSUSE:Board#Members
    http://en.opensuse.org/User:Knurpht
    http://nl.opensuse.org/Gebruiker:Knurpht

  8. #8
    Join Date
    Jun 2008
    Location
    Groningen, Netherlands
    Posts
    20,037
    Blog Entries
    14

    Default Re: dotfiles in my home dir all linking to /git/dotfiles/

    To add:

    - Remove git
    - Create a script that renames / moves the _files in the git/dotfiles folder to .files in your homedir (removing the symlnks)
    The second is required, otherwise the problem will persist, even after a reinstall with reuse of the homedir.
    Last edited by Knurpht; 24-Apr-2013 at 03:28.
    ° Appreciate my reply? Click the star and let me know why.

    ° Perfection is not gonna happen. No way.

    https://en.opensuse.org/openSUSE:Board#Members
    http://en.opensuse.org/User:Knurpht
    http://nl.opensuse.org/Gebruiker:Knurpht

  9. #9

    Default Re: dotfiles in my home dir all linking to /git/dotfiles/

    Code:
    Well, when I typed git dotfiles into google, I got lots of hits, so I
    don't know how you're searching.
    
    The links I found give me the impression that this is not native
    behaviour of git but something you must have chosen to initiate, so I
    suspect you aren't telling us the whole story.
    
    And you didn't do as dd asked either; you had to almost but not quite
    follow his request.
    
    And you're posting in the applications forum instead of the programming
    forum where you might find some programmers.
    
    All of these are making it more difficult to help you, IMHO. In fact,
    I'd recommend you remove git and forget it, since you don't seem
    temperamentally suited to development. JMHO.
    Just remove the application? What? If that’s all your going to input why bother posting at all. Git is an application so i posted in the application section. If a mod suggests then ill move it but I seem to have got a couple of replies here. And yes there are lots of hits for git dotfiles in google but they are all related to syncing them to a git repo, Nothing about your files linking into a directory that doesn’t exist. And as for saying im not temperamentally suited to development, that’s just insulting. No im not a developer I just asked for some help. Keep your comments to yourself next time


    Thanks Knurpht for the reply

    Installed git and created 2 repos for my github account, one links to a few scripts the other links to a python application. Nothing fancy just needed access at my work and at home. I really dont think there is anything else other than creating these and adding few files now and again, this is my first time using git. Only wanted to add something into my $PATH and noticed that I couldn’t access any of my dotfiles.

    Quote Originally Posted by Knurpht View Post
    Merely the install of git does not cause this. What I'd like to see if the output DenverD asks for, not just for your current user, but also for a newly created user.
    Plus: provide all the info about how you got where you are now.
    Code:
    gittest2@200415:~> ls -hal .profile
    -rw-r--r-- 1 gittest2 users 1.1K Jan 26 23:27 .profile
    gittest2@200415:~>
    Code:
    gittest2@200415:~> ls -hal .*rc
    -rw-r--r-- 1 gittest2 users 1.2K Jan 26 23:27 .bashrc
    -rw-r--r-- 1 gittest2 users  861 Mar 28 15:25 .inputrc
    gittest2@200415:~>
    Thats the commands for another test user. There is no linking on the other user. I will try what you posted in second post, had already started to write this when you added the second one up.

    Thanks
    William

  10. #10
    Join Date
    Jun 2008
    Location
    Podunk
    Posts
    27,196
    Blog Entries
    15

    Default Re: dotfiles in my home dir all linking to /git/dotfiles/

    On Wed 24 Apr 2013 11:06:02 AM CDT, williamfleming wrote:

    Thats the commands for another test user. There is no linking on the
    other user. I will try what you posted in second post, had already
    started to write this when you added the second one up.

    Thanks
    William
    Hi
    You will probably be able to identify the offending command(s) via
    history;

    Code:
    history |less
    history |grep git
    --
    Cheers Malcolm °¿° (Linux Counter #276890)
    openSUSE 12.3 (x86_64) Kernel 3.7.10-1.1-desktop
    up 1 day 9:29, 4 users, load average: 0.01, 0.06, 0.05
    CPU Intel® i5 CPU M520@2.40GHz | GPU Intel® Arrandale


Page 1 of 2 12 LastLast

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •