Giter Site home page Giter Site logo

dideler / dotfiles Goto Github PK

View Code? Open in Web Editor NEW
25.0 25.0 4.0 590 KB

:page_facing_up: These are my dotfiles. There are many like them, but these are mine.

License: MIT License

Shell 46.42% Ruby 8.05% jq 1.33% Vim Script 44.19%
dotfiles fish fish-shell shell

dotfiles's People

Contributors

dideler avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

dotfiles's Issues

Fix gh-clone-all auth error

When the auth step fails, we don't handle it properly. Instead the scripts runs in a degraded state.

github.com
  X github.com: the token in GITHUB_TOKEN is missing required scope 'read:org'

fish: Unknown command: \{\n\ \ \ \ echo\ Must\ authenticate\ via\ GitHub\ CLI:\ gh\ auth\ login\ 1\>\&2\n\ \ \ \ exit\ 1\n\ \ \}
~/.config/fish/functions/gh-clone-all.fish (line 2): '{ ... }' is not supported for grouping commands. Please use 'begin; ...; end'
  gh auth status >/dev/null || {
    echo "Must authenticate via GitHub CLI: gh auth login" 1>&2
    exit 1
  }

Script not iterating through all (unignored) repo files

~/github/dotfiles
↪ tree -a -I .git
.
├── .bash_aliases
├── .config
│   ├── autostart
│   │   └── redshift-gtk.desktop
│   ├── fish
│   │   ├── config.fish
│   │   └── functions
│   │       ├── bash-example.fish
│   │       ├── coffitivity.fish
│   │       ├── current-branch.fish
│   │       ├── extract.fish
│   │       ├── find-and-delete.fish
│   │       ├── fish_prompt.fish
│   │       ├── fish_right_prompt.fish
│   │       ├── fish_title.fish
│   │       ├── gif2frames.fish
│   │       ├── gif2webm.fish
│   │       ├── git-clean.fish
│   │       ├── git-graph.fish
│   │       ├── increment.fish
│   │       ├── m.fish
│   │       ├── play-music.fish
│   │       ├── removedupes.fish
│   │       └── sysinfo.fish
│   └── redshift.conf
├── .gitconfig
├── LICENSE
├── link
├── README.md
├── .ssh
│   └── config-example
├── .vim
│   ├── plugin
│   │   └── setcolors.vim
│   └── syntax
│       └── prolog.vim
└── .vimrc

8 directories, 29 files

But it's only going through .config/. Probably some silly bug.

↪ ./link

 Creating links in /home/dennis to your dotfiles...

 ?  Destination file already exists for redshift.conf
      Do you want to [s]kip, [S]kip all, [o]verwrite, [O]verwrite all, [b]ackup, [B]ackup all?
o
 ✔  Removed existing destination file ~/.config/redshift.conf
 ✔  Linked ~/.config/redshift.conf ➜ ~/github/dotfiles/.config/redshift.conf

 ?  Destination file already exists for config.fish
      Do you want to [s]kip, [S]kip all, [o]verwrite, [O]verwrite all, [b]ackup, [B]ackup all?
o
 ✔  Removed existing destination file ~/.config/fish/config.fish
 ✔  Linked ~/.config/fish/config.fish ➜ ~/github/dotfiles/.config/fish/config.fish

 ?  Destination file already exists for fish_prompt.fish
      Do you want to [s]kip, [S]kip all, [o]verwrite, [O]verwrite all, [b]ackup, [B]ackup all?
o
 ✔  Removed existing destination file ~/.config/fish/functions/fish_prompt.fish
 ✔  Linked ~/.config/fish/functions/fish_prompt.fish ➜ ~/github/dotfiles/.config/fish/functions/fish_prompt.fish

 ?  Destination file already exists for fish_right_prompt.fish
      Do you want to [s]kip, [S]kip all, [o]verwrite, [O]verwrite all, [b]ackup, [B]ackup all?
o
 ✔  Removed existing destination file ~/.config/fish/functions/fish_right_prompt.fish
 ✔  Linked ~/.config/fish/functions/fish_right_prompt.fish ➜ ~/github/dotfiles/.config/fish/functions/fish_right_prompt.fish

 ?  Destination file already exists for play-music.fish
      Do you want to [s]kip, [S]kip all, [o]verwrite, [O]verwrite all, [b]ackup, [B]ackup all?
o
 ✔  Removed existing destination file ~/.config/fish/functions/play-music.fish
 ✔  Linked ~/.config/fish/functions/play-music.fish ➜ ~/github/dotfiles/.config/fish/functions/play-music.fish

 ?  Destination file already exists for sysinfo.fish
      Do you want to [s]kip, [S]kip all, [o]verwrite, [O]verwrite all, [b]ackup, [B]ackup all?
o
 ✔  Removed existing destination file ~/.config/fish/functions/sysinfo.fish
 ✔  Linked ~/.config/fish/functions/sysinfo.fish ➜ ~/github/dotfiles/.config/fish/functions/sysinfo.fish

 ?  Destination file already exists for fish_title.fish
      Do you want to [s]kip, [S]kip all, [o]verwrite, [O]verwrite all, [b]ackup, [B]ackup all?
o
 ✔  Removed existing destination file ~/.config/fish/functions/fish_title.fish
 ✔  Linked ~/.config/fish/functions/fish_title.fish ➜ ~/github/dotfiles/.config/fish/functions/fish_title.fish

 ?  Destination file already exists for m.fish
      Do you want to [s]kip, [S]kip all, [o]verwrite, [O]verwrite all, [b]ackup, [B]ackup all?
o
 ✔  Removed existing destination file ~/.config/fish/functions/m.fish
 ✔  Linked ~/.config/fish/functions/m.fish ➜ ~/github/dotfiles/.config/fish/functions/m.fish

 ?  Destination file already exists for gif2frames.fish
      Do you want to [s]kip, [S]kip all, [o]verwrite, [O]verwrite all, [b]ackup, [B]ackup all?
o
 ✔  Removed existing destination file ~/.config/fish/functions/gif2frames.fish
 ✔  Linked ~/.config/fish/functions/gif2frames.fish ➜ ~/github/dotfiles/.config/fish/functions/gif2frames.fish

 ?  Destination file already exists for removedupes.fish
      Do you want to [s]kip, [S]kip all, [o]verwrite, [O]verwrite all, [b]ackup, [B]ackup all?
o
 ✔  Removed existing destination file ~/.config/fish/functions/removedupes.fish
 ✔  Linked ~/.config/fish/functions/removedupes.fish ➜ ~/github/dotfiles/.config/fish/functions/removedupes.fish

 ?  Destination file already exists for current-branch.fish
      Do you want to [s]kip, [S]kip all, [o]verwrite, [O]verwrite all, [b]ackup, [B]ackup all?
o
 ✔  Removed existing destination file ~/.config/fish/functions/current-branch.fish
 ✔  Linked ~/.config/fish/functions/current-branch.fish ➜ ~/github/dotfiles/.config/fish/functions/current-branch.fish

 ?  Destination file already exists for increment.fish
      Do you want to [s]kip, [S]kip all, [o]verwrite, [O]verwrite all, [b]ackup, [B]ackup all?
o
 ✔  Removed existing destination file ~/.config/fish/functions/increment.fish
 ✔  Linked ~/.config/fish/functions/increment.fish ➜ ~/github/dotfiles/.config/fish/functions/increment.fish

 ?  Destination file already exists for extract.fish
      Do you want to [s]kip, [S]kip all, [o]verwrite, [O]verwrite all, [b]ackup, [B]ackup all?
o
 ✔  Removed existing destination file ~/.config/fish/functions/extract.fish
 ✔  Linked ~/.config/fish/functions/extract.fish ➜ ~/github/dotfiles/.config/fish/functions/extract.fish

 ?  Destination file already exists for git-graph.fish
      Do you want to [s]kip, [S]kip all, [o]verwrite, [O]verwrite all, [b]ackup, [B]ackup all?
o
 ✔  Removed existing destination file ~/.config/fish/functions/git-graph.fish
 ✔  Linked ~/.config/fish/functions/git-graph.fish ➜ ~/github/dotfiles/.config/fish/functions/git-graph.fish

 ?  Destination file already exists for gif2webm.fish
      Do you want to [s]kip, [S]kip all, [o]verwrite, [O]verwrite all, [b]ackup, [B]ackup all?
o
 ✔  Removed existing destination file ~/.config/fish/functions/gif2webm.fish
 ✔  Linked ~/.config/fish/functions/gif2webm.fish ➜ ~/github/dotfiles/.config/fish/functions/gif2webm.fish

 ?  Destination file already exists for git-clean.fish
      Do you want to [s]kip, [S]kip all, [o]verwrite, [O]verwrite all, [b]ackup, [B]ackup all?
o
 ✔  Removed existing destination file ~/.config/fish/functions/git-clean.fish
 ✔  Linked ~/.config/fish/functions/git-clean.fish ➜ ~/github/dotfiles/.config/fish/functions/git-clean.fish

 ?  Destination file already exists for bash-example.fish
      Do you want to [s]kip, [S]kip all, [o]verwrite, [O]verwrite all, [b]ackup, [B]ackup all?
o
 ✔  Removed existing destination file ~/.config/fish/functions/bash-example.fish
 ✔  Linked ~/.config/fish/functions/bash-example.fish ➜ ~/github/dotfiles/.config/fish/functions/bash-example.fish

 ?  Destination file already exists for find-and-delete.fish
      Do you want to [s]kip, [S]kip all, [o]verwrite, [O]verwrite all, [b]ackup, [B]ackup all?
o
 ✔  Removed existing destination file ~/.config/fish/functions/find-and-delete.fish
 ✔  Linked ~/.config/fish/functions/find-and-delete.fish ➜ ~/github/dotfiles/.config/fish/functions/find-and-delete.fish

 ?  Destination file already exists for coffitivity.fish
      Do you want to [s]kip, [S]kip all, [o]verwrite, [O]verwrite all, [b]ackup, [B]ackup all?
o
 ✔  Removed existing destination file ~/.config/fish/functions/coffitivity.fish
 ✔  Linked ~/.config/fish/functions/coffitivity.fish ➜ ~/github/dotfiles/.config/fish/functions/coffitivity.fish

 ?  Destination file already exists for redshift-gtk.desktop
      Do you want to [s]kip, [S]kip all, [o]verwrite, [O]verwrite all, [b]ackup, [B]ackup all?
o
 ✔  Removed existing destination file ~/.config/autostart/redshift-gtk.desktop
 ✔  Linked ~/.config/autostart/redshift-gtk.desktop ➜ ~/github/dotfiles/.config/autostart/redshift-gtk.desktop

 ?  Destination file already exists for config-example
      Do you want to [s]kip, [S]kip all, [o]verwrite, [O]verwrite all, [b]ackup, [B]ackup all?
o
 ✔  Removed existing destination file ~/.ssh/config-example
 ✔  Linked ~/.ssh/config-example ➜ ~/github/dotfiles/.ssh/config-example
ln: failed to create symbolic link ‘/home/dennis/.vimrc’: File exists

Improve 'update' script

Put it in some directory in $PATH so it can be run from anywhere and give it executable permissions.

Maybe add an argument that allows the script to push it automatically.
E.g. update-dotfiles --push or update-dotfiles -p.

Also look into having a branch that just contains the script, and another branch that is specific to each user (it will contain their dotfiles).

Illegal ln option

When running this via dideler/setup-osx, I get the error

ln: illegal option -- -

Consider switching to a different fish plugin manager

Been using fisherman for a few years: https://github.com/jorgebucaran/fisher

Recently did a fisher update to update the installed packages and fisher had a v2 to v3 upgrade which caused things to break. I'm spending a Sunday evening figuring out what went wrong, deleting the old installation, reinstalling all the plugins, and updating my published packages.

I didn't bother reinstalling every package - here are the ones I decided to keep:

dideler/fish-cd-git
dideler/fish-dl
fisherman/fishtape
edc/bass
fisherman/done
fisherman/get
fisherman/humanize_duration
fisherman/menu
Markcial/mock
fisherman/spin

I want something stable and simple. I don't have the patience anymore to spend my limited personal time unexpectedly fixing a broken environment - I just want my tooling to work smoothly in the background and not bother me so I can get on with other things and not spend any more time behind the computer.

To avoid further messing things up, I finished the v2 to v3 migration. Now's a good time to consider alternatives. One that looks interesting is https://github.com/danhper/fundle.

Improve filepath in conflict message?

?  Destination file already exists for redshift.conf
      Do you want to [s]kip, [S]kip all, [o]verwrite, [O]verwrite all, [b]ackup, [B]ackup all?

Better to show absolute path (such as ~/.config/redshift.conf)?

Script fails to create some symlinks

~/github/dotfiles                                                                
↪ ./link

 Creating links in /home/dennis to your dotfiles...

 ?  Destination file already exists for redshift.conf
      Do you want to [s]kip, [S]kip all, [o]verwrite, [O]verwrite all, [b]ackup, [B]ackup all?
o
 ✔  Removed existing destination file ~/.config/redshift.conf
 ✔  Linked ~/.config/redshift.conf ➜ ~/github/dotfiles/.config/redshift.conf

.
.
.

 ?  Destination file already exists for config-example
      Do you want to [s]kip, [S]kip all, [o]verwrite, [O]verwrite all, [b]ackup, [B]ackup all?
o
 ✔  Removed existing destination file ~/.ssh/config-example
 ✔  Linked ~/.ssh/config-example ➜ ~/github/dotfiles/.ssh/config-example
ln: failed to create symbolic link ‘/home/dennis/.vimrc’: File exists

Where ~/.vimrc is a symbolic link to a non-existing file.

↪ ls -hag ~/.vimrc
lrwxrwxrwx 1 dennis 34 Dec 14 17:51 /home/dennis/.vimrc -> /home/dennis/github/dotfiles/vimrc

Interactive option

Currently the link script assumes you want to link every dotfile it comes across in the repo. But this may not always be the case. Add an interactive option to prompt before each dotfile is considered for linking.

Remove github section gitconfig?

I have a [github] section in my gitconfig and I don't think I need it anymore. I don't even know what it was for, because my google-fu fails me. It contains my username and a token.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.