holman / dotfiles Goto Github PK
View Code? Open in Web Editor NEW@holman does dotfiles
Home Page: http://zachholman.com/2010/08/dotfiles-are-meant-to-be-forked/
License: MIT License
@holman does dotfiles
Home Page: http://zachholman.com/2010/08/dotfiles-are-meant-to-be-forked/
License: MIT License
I cannot seem to get res
to work for me - the error I'm getting is the following:
/Users/jacobwg/.dotfiles/bin/res:1491:1495: execution error: System Events got an error: Can’t get radio group 1 of group 1 of tab group 1 of window "Built-in Retina Display" of application process "System Preferences". Invalid index. (-1719)
Not sure what's going on... :/
Whenever I open a new terminal window, although rvm loads as it should, something else seems to be loading my system ruby over it. The following is with a brand new terminal session:
ruby-1.9.2-p180 in adam/
› ruby -v
ruby 1.8.7 (2009-06-12 patchlevel 174) [i686-darwin10.0.0]
ruby-1.9.2-p180 in adam/
› rvm info
ruby-1.9.2-p180:
If I append rvm use default
to the end of zsh/zsh.symlink, it loads the rvm default as it should. I've also thrown a ECHO HELLO
in ruby/rvm.zsh to ensure that the file is being loaded and it is.
Any ideas what could be causing this? I have one other confirmed report of this behavior from another developer friend who uses your dotfiles, and he says it happens with nvm as well.
The ll
alias stopped working recently, and it's because system/aliases.zsh
is sourced after system/path.zsh
during this loop.
The ideas seems to be that any .zsh
file is independent of others, but that's not the case here. Are there other cases and should the source order be well defined?
hey, not sure why i get this error... completely willing to help debug. but i'm a ruby newbie. any help would be appreciated.
Attempting to upload test.png
/Library/Ruby/Gems/1.8/gems/cloudapp_api-0.3.3/lib/cloudapp/drop.rb:108:in `create': undefined method `merge!' for nil:NilClass (NoMethodError)
Reproducible with both zsh and bash
$z -l Cura
0.5 /Users/kent90/.virtualenvs/Cura
2 /Users/kent90/.virtualenvs/Cura/bin
344 /Users/kent90/Documents/Work/Ultimaker/Cura
$z Cura<TAB>
$z /Users/kent90
Hello,
The topical organization is really good, but I was wondering how to make symlinks inside directories besides the home one. E.g. I have the dotfiles for OpenBox in ~/.config/openbox, so ultimately I want to create a symlink for the openbox directoy in ~/.config, not just ~. Any thoughts?
Hey,
I'm pretty much new to this whole .dotfiles
thing.
I forked and cloned the repo as instructed, removed a couple of things which I don't think I need and proceeded to run script/bootstrap
. I get some symlinks in ~/
but brew update
and brew install
never appears to run. I can run bin/dot
manually.
Also my symlinks should just work like normal right with things like git? when I have say .gitconfig
in ~/
non-symlinked I can run git config -l
and I'll get my git config printed out and when I'm in repos it will use those config options. As soon as I change it to a symlink I get blanks and repos prompt me for config.
Sorry if I'm doing something really stupid or missing something basic. There are no prerequisites listed on the install just to clone and run so that's what I'm doing.
Thanks for any help in advance
Running git reup
isn't working for me. Is there a command that needs to be added to bin to get that functioning?
Not sure if you are running zsh version 5.0.0 but I've recently run across an issue with opening a new shell with the error above. It appears to be coming back down to the __git_complete. I am not for sure what has caused this problem to start but here is the dump from script zsh -x
https://gist.github.com/4212585.
(Search that link for "complete:13" and it will take you right to the first error)
After updating to osx 10.10 the e
commands doest work anymore
› e
/Users/tcarlsen/.dotfiles/bin/e: line 18: exec: atom: not found
but exec $EDITOR .
works just fine 😕
Hey holman,
When using git track
, this error appear:
The --set-upstream flag is deprecated and will be removed. Consider using --track or --set upstream-to
fatal: Not a valid object name: 'origin/master'.
› git --version
git version 1.8.2.1
hub version 1.10.5
More and more applications are using $XDG_CONFIG_HOME/<appname>/
dirs to store their configs. It would be nice to be able to handle these (although, they are not dotfiles ;).
So, I propose to add another type of files and link them accordingly, that is:
<appname>/<whatever>.conf
→ $XDG_CONFIG_HOME/<appname>/<whatever>
.I think it's also a good idea to change .sym
suffix to, say, .dot
, but that might be too intrusive, hm…
Setting up my new MBP and I'm using your dotfiles as a base ( amazing so far ), ran into a few Maverick / Retina related errors and I figured I'd document them here.
› res
/Users/austinrivas/.dotfiles/bin/res:1226:1253: execution error: System Events got an error: Can’t get window "Color LCD" of application process "System Preferences". (-1728)
Your .gitconfig
file contains your email. After I forked and installed your awesome .dotfiles
I started committing stuff on your behalf :-).
I would suggest to either remove that from your .gitconfig or maybe change to something generic.
git-completion.bash is throwing the warning WARNING: this script is deprecated, please see git-completion.zsh
, but git-completion.zsh doesn't seem to exist when git is installed with homebrew.
https://github.com/holman/dotfiles/blob/master/homebrew/install.sh#L12
Here we start a homebrew install and pipe the output to a temporary file.
But when that script runs we wait for user input. Which is never received the user does not know we need to press enter to continue.
See the wait_for_user function in https://raw.github.com/mxcl/homebrew/go
not so much an issue as I cant seem to locate how to turn it of or what causes it.. its only some folder not all
http://i.imgur.com/IKOfI.jpg
any help at all would be appreciated.
Anyone have any clever ideas for including oh-my-zsh in dotfiles? I gave up after a few hours last night once I realized dotfiles was loading every single plugin in the oh-my-zsh tree, since they all end in .zsh
. Maybe I should just define a different extension for sourcing?
To install I run : ~/.dotfiles$ script/bootstrap
which gives me : [ ? ] - What is your github author name? script/bootstrap: 35: read: Illegal option -e
that's the line of read -e author,,
Running ubuntu, zsh (just installed it), what should I do? (does an error like that stops the rest of the script? should I re-run it with another shell?)
Hello
I used boxen to install all the applications on my system then, the .dotfiles here to set up my setup. I am not sure why I am getting this error every time I try to run rbenv.
rbenv:10: command not found: rbenv
I am new to zsh and have tried a few of the ideas that have been suggest as pasted issues here. But none seem to have helped me out.
Anyone have a suggestion for me or a place to start.
Scott
It seems brew with no arguments exits with a non-zero status.
What do you get when you run which ping
? I mean, is your https://github.com/holman/dotfiles/blob/master/system/grc.zsh working at all?
How about https://github.com/holman/dotfiles/blob/master/homebrew/install.sh ?
hey there,
sorry for making this issue as it is not really an issue, but after looking around the internet all night long and not finding the answer I have come here ;)
I want to style the prompt that it shows the prompt like this:
directory_name(){
echo "%{$fg_bold[cyan]%}%2/%/%{$reset_color%}"
}
this would echo /Users/User/
perfect, but
I want Users to be styled {$reset_color%}
and
I want User to be styled {$fg_bold[cyan]%}
This would give my just a little bit more information on where I am in the folder structure.
Optional idea would be that when in a git repository it always shows the dir path up to the root of the git init. but plz the first problem is the most important ;)
In prompt.zsh: export PROMPT=$'\n$(rvm_prompt) in
Due to the PROMPT var containing utf-8 characters, installing rebar via homebrew fails. Refer to this: elixir-lang/elixir#1108
setting the PROMPT var manually fixes the problem. eg. PROMPT=hello
Can't run rake install w/o it...
I'm getting this warning when I'm login in some terminal.
WARNING: this script is deprecated, please see git-completion.zsh
Really new to all this. Apologies for what I know will be an obvious question...
Having installed these dotfiles I am getting the following every time I open Terminal:
rbenv:10: command not found:
I don't have/need rbenv - what do I need to delete/amend in (OSX) to stop that happening?
https://github.com/holman/dotfiles/blob/master/script/bootstrap#L40
See also yeoman/generator-generator#24
Maybe I'm not seeing the flow correctly.
dotfiles installer using /bin/sh instead of rake
Inspired by davidxia's bootstrap_dotfiles and joshdick's dotfiles, I've worked out a basic bootstrap installer for dotfiles that is shell-based and therefore doesn't rely on rake. It doesn't have all the features of other rake-based installers, but it's a good start.
Just wanted to share because 1) your dotfiles were a big help when first starting out and 2) your current dotfiles bootstrap script mentions wanting to move the installer out of rake.
As of 953efa8 the README statement:
I want this to work for everyone; that means when you clone it down it should work for you even though you may not have rbenv installed, for example.
is only partially true. What happens if you install dotfiles from scratch and you don't have rbenv installed is you'll get a:
/Users/USERNAME/.dotfiles/ruby/rbenv.zsh:2: command not found: rbenv
message every time you open a new terminal window, tab, or whatnot.
You may have moved onto VIM/atom, but some people haven't :) ... better to generalize for both versions, I'd think. This is relevant in:
(very) Low Priority
Could not get this to work on ubuntu.
I forked your repo, then ran ~/.dotfiles/script/bootstrap. After that, tried to run source ~/.zshrc but I got some errors.
bash: typeset: -U: invalid option
typeset: usage: typeset [-aAfFgilrtux] [-p] name[=value] ...
bash: ${(M)config_files:#*/path.zsh}: bad substitution
bash: ${${config_files:#*/path.zsh}:#*/completion.zsh}: bad substitution
autoload: command not found
compinit: command not found
bash: ${(M)config_files:#*/completion.zsh}: bad substitution
Any ideas?
It would be nice to have a strategy to "clean up" once you're all done - to let people try this project out without risk of cluttering their system. Something like this is a simple start, but it would be vastly improved if the script detected *.backup files and restored them to their proper locations, and potentially even deleted the ~/.dotfiles directory
in script/unbootstrap:
#!/usr/bin/env bash
#
# unbootstrap uninstalls things.
cd "$(dirname "$0")/.."
DOTFILES_ROOT=$(pwd)
uninstall_dotfiles () {
info 'uninstalling dotfiles'
for src in $(find "$DOTFILES_ROOT" -maxdepth 2 -name '*.symlink')
do
dst="$HOME/.$(basename "${src%.*}")"
echo "Removing $dst"
rm "$dst"
done
}
'git add -u' will add deletions to your index. It will also add modifications, though.
'git ls-files -d |xargs git rm' will add deletions, but will have unexpected behavior if filenames have spaces
'git ls-files -dz |xargs -0 git rm' is your best bet, I think.
That said, I usually just use git add -u
So, my buddy wanted to set up a dotfiles repo, and downloaded a zip of my repo. A little while later, I was seeing commits show up in his repo that were saying that I had pushed.
Now, I notice that you have your credentials kept privately.
https://github.com/holman/dotfiles/blob/master/git/gitconfig.symlink.example
I keep my GitHub username, git username, and git author name in my .gitconfig, and have osxkeychain
set up as the credential helper.
Any chance with the new new iCloud keychain this is getting synced accidentally?
Or is it not a good practice to commit these Git/GitHub usernames or emails?
I need to be able to create symlinks in a not-yet-existing hidden directory placed under $HOME (ie Scala's .sbt/). Was wondering if there's a ways to do it when running script/bootstrap ?
@holman Can you fix the file name?
Quote:
git-rank-contributors: a simple script to trace through the logs and
rank contributors by the total size of the diffs they're responsible for.
A change counts twice as much as a plain addition or deletion.
So, it should be contributors, not contributers?
I've grown dependent on my dotfiles, a slight fork of yours, but I'm constantly switching around on different boxes so I've started to use boxen a fair amount but there are a few conflicts with boxen, namely the git credentials. Do you use boxen or is it more of the for newbies at github tool?
In the README it mentions installing grc in order to colorize ls
, but really you need coreutils too (as documented in system/aliases.zsh
). This commit updates the README to makes that clearer.
Since common aliases like ll
are only created when gls
is available, this is pretty important to a smooth setup.
First of all, I thought the organization of your zsh files and loading them via for config_file ($ZSH/**/*.zsh) source $config_file
was ingenious.
One problem that I found though is that not loading the PATH
variable first can cause some problems with your aliases. I was installing some of the dependancies via macports and not homebrew and found that some aliases were not working, specifically l, ls, etc. I realized its because path.zsh
is not guaranteed to load before the other zsh files. In my case it was trying to create the aliases for ls
but was unable to because gls
was not being found due to PATH
not including /opt/local/bin
yet. reload!
would work, but that is only because at that point the PATH
variable was set.
My solution was just to set the PATH
variable after the ZSH
in zshrc.symlink
.
I install homebrew in ~/.homebrew and adjust the PATH accordingly.
A few days ago I gave your dotfiles a try and used the existing dotfiles/system/path.zsh adjusting it to suit my needs.
Today I installed @defunkt's hub with brew and I noticed the alias (git=hub) you set in dotfiles/git/aliases.zsh didn't work.
Turns out it's because hub is installed with brew and since at the time git/aliases.zsh gets sourced ~/.homebrew/bin is not yet part of PATH, the if [[ -f check is negative and the alias is never set.
I realize this is an issue with my setup and not your dotfiles, and the fix is as trivial as sticking
HUB=$(which hub)
if [[ -f $HUB ]]; then
alias git=$HUB
fi
in my .zshrc file but I was wondering if you had any tip for solving this in a more elegant way.
as ack
is called ack-grep
(the ack command already existed)
DELAY
is not --delay
.
I'm getting this from a fresh clone of the project.
I have rbenv installed in ~/.rbenv
.
The rbenv function can't find the bin file.
➜ .dotfiles rbenv echo $PATH
./bin:/Users/stuart/.rbenv/shims:/usr/local/bin:/usr/local/sbin:/Users/stuart/.sfs:/Users/stuart/.dotfiles/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin
➜ .dotfiles rbenv rbenv
rbenv:10: command not found: rbenv
I see system/path.zsh
doesn't have a meantion of $HOME/.rbenv/bin
which would solve this issue.
Is there a reason why that isn't included in the path?
I would love to fork this and send a pull request, but since I have my own repo named dotFiles, I apparently can't.
Anyway, I suggested two changes to your cloudapp script, seen here: https://gist.github.com/976035
First is to check to see if the user has specified a file, and if not, fail gracefully.
Second is that echo -n is the same thing as echo | tr -d '\n'.
Anyway, there you go.
Unsure of what the install did w/symlinks, overwriting, etc. Worth noting that I played with Sourcetree for a week or so also, but uninstalling that didn't change anything. Tried installing Hub via Homebrew separately, but it didn't do the trick.
Reference: https://github.com/JoshuaJBerk/dotfiles/blob/master/zsh/prompt.zsh
Didn't alter the script at all except to remove the Ruby-specific things, and RPROMPT.
How can I change zsh theme?
I tried adding ZSH_THEME = "afowler"
to zshrc.symlink, but failed.
Seems like there may be an error with one of the aliases in git/aliases.zsh
:
alias gcb='git copy-branch-name'
After running a quick ag
within the .dotfiles
directory, that git function doesn't appear to be defined anywhere (and it's not a stock git function either).
Am I missing something?
MacBook-Pro-de-Carlos% script/bootstrap
[ .. ] installing dotfilesinstall_dotfiles:18: = not found
script/bootstrap:121: = not found
All installed!
I bought this mac today, please, don't blame me. :P
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.