Giter VIP home page Giter VIP logo

dotfiles's Introduction

holman

holman

holman

gem install holman

gem install holman

gem install holman

holman

holman

holman

dotfiles's People

Contributors

anaisbetts avatar calvn avatar ch1bo avatar christianbundy avatar dplarson avatar gambtho avatar ghuntley avatar grawity avatar holman avatar jacobwgillespie avatar jawshooah avatar johnrees avatar kirelagin avatar memborsky avatar metheon avatar ncolton avatar omegak avatar pcasaretto avatar pmcdaniel avatar prathe avatar pravj avatar rcarver avatar rmcastil avatar rtomayko avatar shanev avatar sibartlett avatar stephenyeargin avatar sumeetjain avatar victorklos avatar zpao 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  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  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  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  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  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  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  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

dotfiles's Issues

`res` broken

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... :/

NVM not loading default

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.

Load order doesn't set up $PATH soon enough

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?

cloudapp api errors

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)

gifme: --reverse

I want to run gifme with a --reverse switch that would then re-add the same files in reverse order, thus making a complete, unbroken animation. Like this, which was just an animation of the cat coming out of the box:

cat

For Science, motherfuckers.

Sometimes TAB completion inserts wrong directory

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

Symlinks inside directories

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?

noob install not working?

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

@jh3y

git reup doesn't work?

Running git reup isn't working for me. Is there a command that needs to be added to bin to get that functioning?

complete:13: command not found: compdef

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)

e command not working on 10.10

After updating to osx 10.10 the ecommands doest work anymore

› e
/Users/tcarlsen/.dotfiles/bin/e: line 18: exec: atom: not found

but exec $EDITOR . works just fine 😕

git track

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

$XDG_CONFIG_HOME

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…

res fails on Maverick / Retina

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)

.gitconfig

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

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.

Integration with oh-my-zsh

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?

script/bootstrap: 35: read: Illegal option -e

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?)

rbenv issue

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

adjusting the prompt

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 ;)

Deprecated script

I'm getting this warning when I'm login in some terminal.

WARNING: this script is deprecated, please see git-completion.zsh

rbenv:10: command not found:

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?

shell-based dotfiles installer (instead of rake)

Short version

dotfiles installer using /bin/sh instead of rake

Longer version

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.

When rbenv is not installed returns a warning message

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.

Ubuntu 12

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?

Revert strategy

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
}

grm alias

'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

Question: What's the deal with Git/GitHub user credentials?

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?

symlinking directories

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 ?

Rename git-rank-contributers to git-rank-contributors

@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?

Boxen compatibility

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?

grc and coreutils are part of basic setup

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.

Having a separate file for path

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.

Minor issue when homebrew path is set in dotfiles/system/path.zsh and "alias git=hub"

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.

rbenv not found

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?

Small fix to cloudapp.

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.

Change zsh Theme

How can I change zsh theme?
I tried adding ZSH_THEME = "afowler" to zshrc.symlink, but failed.

Git function does not exist

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?

Error while running bootstrap

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

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.