dideler / dotfiles Goto Github PK
View Code? Open in Web Editor NEW:page_facing_up: These are my dotfiles. There are many like them, but these are mine.
License: MIT License
:page_facing_up: These are my dotfiles. There are many like them, but these are mine.
License: MIT License
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
}
~/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
http://stackoverflow.com/questions/1459150/how-to-undo-git-commit-amend-done-instead-of-git-commit
Immediately after an amend, git reflog
should show something like
f41210d HEAD@{0}: commit (amend): Summary line Z
9a0c170 HEAD@{1}: commit: Summary line Z
07dd8f6 HEAD@{2}: commit: Summary line X
...
If the first line contains "commit (amend)", grab the associated checksum hash and use it to undo the commit with git reset --soft
.
Putting silly restrictions on how to pass arguments is silly.
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).
Example https://github.com/dideler/fish-cd-git.
Not all of them, just the ones that could benefit from it, such as complex scripts that need testing or scripts that others may want to use.
When running this via dideler/setup-osx, I get the error
ln: illegal option -- -
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.
? 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
)?
Either in a new repo or in here.
Suggestions
~/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
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.
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.
I think oh-my-fish could benefit from your extract function.
I'd be happy to send a pull request to oh-my-fish, with a link and credit to the above URL if you don't have time?
-n
or --dry-run
to show what script will do without actually doing it.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.