GithubHelp home page GithubHelp logo

dotfiles's Issues

Errors on fresh Yosemite beta?

I forked your dot files, changed the 2 URLs in /bin/dotfiles to point to my fork, then tried your installation instructions on a fresh install of Yosemite, with only Xcode command line tools, brew, and git pre-installed, but I get the errors:

$ bash -c "$(curl -fsSL raw.github.com/christophera/dotfiles/master/bin/dotfiles)"
Downloading dotfiles...

Initializing git repository...
Initialized empty Git repository in /Users/ChristopherA/.dotfiles/.git/
The authenticity of host 'github.com (192.30.252.130)' can't be established.
RSA key fingerprint is 16:27:ac:a5:76:28:2d:36:63:1b:56:4d:eb:df:a6:48.
Are you sure you want to continue connecting (yes/no)? y
Please type 'yes' or 'no': yes
Warning: Permanently added 'github.com,192.30.252.130' (RSA) to the list of known hosts.
Permission denied (publickey).
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.
fatal: ambiguous argument 'FETCH_HEAD': unknown revision or path not in the working tree.
Use '--' to separate paths from revisions, like this:
'git <command> [<revision>...] -- [<file>...]'

From this point on the install continues with the installation of brew updates, etc., but eventually the script aborted at/with:

==> ./prepare-source
==> ./configure --prefix=/usr/local/Cellar/rsync/3.1.1 --with-rsyncd-conf=/usr/l
==> make
==> make install
🍺  /usr/local/Cellar/rsync/3.1.1: 8 files, 764K, built in 71 seconds

x Error: npm not found.
Aborting...
$

Any ideas on what I can do to fix this?

-- Christopher Allen

Automate installation of software

When running sync.sh I'd like to also do this:

  • Install homebrew, if missing DONE
  • Update homebrew & formula DONE
  • Install or upgrade Git via homebrew DONE
  • Install or upgrade MacVim and "override" system Vim via homebrew DONE
  • Install Node, npm, grunt, bower, DONE
  • Install Sass WONTFIX

And maybe echo to the terminal a reminder of the list of Apps I should install (using a flag when running the script):

  • Alfred App
  • Chrome
  • Chrome Canary
  • Divvy
  • Dropbox
  • Firefox
  • iTerm 2
  • ImageOptim
  • LimeChat
  • Opera
  • VLC
  • VirtualBox
  • ... etc

Fix error during homebrew formula check

Due to using a URL here instead of a name.

Error: No such keg: /opt/twitter/Cellar/https://raw.github.com/Homebrew/homebrew-dupes/master/rsync.rb
! Missing formula: https://raw.github.com/Homebrew/homebrew-dupes/master/rsync.rb

Tab completion.

Sorry, I'm not sure if this is the proper forum to ask this, but when I moved over to this dotfile setup today (which is great, BTW), I've noticed that pressing tab doesn't show the contents of the folder I'm cding into when I'm moving around the file system. I tried to bring some of the settings from my old bash_profile that seem to have done this on my old setup, but they don't seem to work here. I've tried putting them in both the inputrc and the bashrc file to no avail.

These were the settings I was trying to use:

bind '"\ep": history-search-backward'
bind '"\en": history-search-forward'
bind '"\C-w": backward-kill-word'
bind 'set completion-ignore-case on'
bind 'set completion-prefix-display-legnth 2'
bind 'set menu-complete'
bind 'set menu-complete-backward'
bind 'set show-all-if-ambiguous on'
bind 'set show-all-if-unmodified on'
bind 'set completion-map-case on'

I'm not sure which one does what I've described, but any input here would be greatly appreciated, as I'm still pretty new to all this command line kung-fu.

Thanks in advance.

can this scripts work?

Hi, is it possible to do script for this settings? i search hard bud cant find

"Finder: items in the sidebar"

show Mac
hide iCloud/recents
defaults write com.apple.finder ShowRecentTags -bool false

"Settings-general-RecentItems - NONE"

"set F13(printScr) for save-screenshot-as-file"

"set Alt+F13(printScr) for save-pic-of-area-as-file"

"Mojave Settings-Update -ALL disable"

Fix buggy console vim

The set lines setting is messing up the rendering in console vim:

Move the setting into .gvimrc

Did I just nuke my dotfiles?

Hadn't updated the dotfiles in a while. So I ran a git pull and I noticed that a lot of paths had changed from bash/ to shell/.

When I restarted Terminal, I lost all the nice colors. But remembered that some of the .dotfiles in my home directory weren't properly symlinked now that the paths had changed.

So I—mistakenly—thought the safest way to have all that stuff re-symlinked was to re-run the script bash -c "$(curl -fsSL raw.github.com/necolas/dotfiles/master/bin/dotfiles)"

I quit Terminal, and when I restarted, I was met with

-bash: $'\r': command not found
-bash: $'\r': command not found
-bash: /Users/rruiz/.bash_profile: line 8: syntax error near unexpected token `elif'
-bash: /Users/rruiz/.bash_profile: line 8: `elif infocmp xterm-256color >/dev/nu'l 2>&1; then

And to add insult to injury, nothing I enter in the command-line works. When I hit enter on anything, it gives me that Terminal error sound.

So I commented out everything in the .bash_profile, .bashrc, .inputrc files. And now when I restart Terminal I get

-bash: $'\r': command not found
-bash: $'\r': command not found
-bash: $'\r': command not found
-bash: $'\r': command not found
-bash: $'\r': command not found
-bash: $'\r': command not found

Again, nothing I enter in the command-line will work.

I'm able to run zsh if I change the shell in Terminal preferences, but I really want to fix this problem and I've run out of ideas.

Bash Prompt doesn't break long commands into newlines.

I'm noticing that when I enter commands longer than one line, rather than breaking into a second line, it'll overwrite the existing line and wig everything out.

It happens on both OS X Lion with Terminal, and Snow Leopard using iTerm.

Inconsistent use of "logger" in backup script

Suspect it's a triviality...

Line 39 of backup uses $LOGGER to invoke the utility whereas everywhere else calls logger directly. I assume whichever way is the "right" way all the calls should be one or the other.

Cheers.

Remove some global node modules

Remove bower, grunt-cli, and karma.

I haven't used grunt for ages, but I prefer local installations and not having modules ask users to globally installed CLI tools that could just be mapped to a Makefile or npm-script

You could also show outstanding commits

Not a issue, maybe a "feature request", but I modified your .bash_prompt like so:

# Check for unstaged changes.
if ! $(git diff-files --quiet --ignore-submodules --); then
	s+="${red}!";
fi;
# Check for untracked files.
if [ -n "$(git ls-files --others --exclude-standard)" ]; then
	s+="${orange}?";
fi;
# Check for uncommitted changes in the index.
if ! $(git diff --quiet --ignore-submodules --cached); then
	s+="${green}+";
fi;
# Check for outstanding commits
if [ -n "$(git log --quiet --oneline origin/master..HEAD 2>/dev/null)" ]; then
	s+="${cyan}^";
fi;

I am a starter in bash scripting, but damn do I love that cyan ^ when I got unpushed commits.

Error on first install

You may be aware of this already but when you install these dotfiles for the first time it will output a couple of errors because of missing files/dirs. Basically you have to clone the project (to $HOME/.dotfiles) before running the install otherwise it won't find the .dotfiles/ directory and the libs.

DOTFILES_DIRECTORY="${HOME}/.dotfiles"

# Won't work if you haven't cloned the repo beforehand
cd ${DOTFILES_DIRECTORY}

source ./lib/help
source ./lib/utils
source ./lib/brew
source ./lib/npm

One possible fix would be to tell the script to clone the repo directly before cding into it. But that will render the git check kind off needless. Another possible solution would be to move the lib/help and lib/utils directly into the bin/dotfiles, kinda like what I've done in my fork.

rsync install from Github produces 404 error (deprecated repo).

The homebrew-dupes repo has been deprecated, and it's causing the line below to produce an error.

brew install https://raw.github.com/Homebrew/homebrew-dupes/master/rsync.rb

curl: (22) The requested URL returned error: 404 Not Found
Error: Failure while executing; `/usr/bin/curl -q --show-error --user-agent Homebrew/1.9.2\ \(Macintosh\;\ Intel\ Mac\ OS\ X\ 10.14.2\)\ curl/7.54.0 --fail --progress-bar --location --remote-time --continue-at 0 --output /Users/USERNAME/Library/Caches/Homebrew/Formula/rsync.rb https://raw.github.com/Homebrew/homebrew-dupes/master/rsync.rb` exited with 22. Here's the output:

curl: (22) The requested URL returned error: 404 Not Found

The fix is to point to the homebrew-core repo. PR incoming.

Bash prompt username coloring issues in iTerm 2

Been spending a few days putting together all the dotfiles I want to use and love your color scheme and setup for the bash prompt! I grabbed your .bash_prompt and it all works perfectly in Terminal (10.7.4), but in iTerm 2 (Build 1.0.0.20120203), the username and machine name aren't colored properly. I'm using Solarized Dark and everything else looks fine. Here are two screenshots:

Terminal (10.7.4)

terminal

iTerm 2

iTerm

Even if I set iTerm 2 to Dark Background, the username and machine name are still gray.

Any idea what might be causing the issues in iTerm 2?

Backup existing dotfiles

Modify the install/update script so that it moves existing dotfiles into a timestamped backup dir rather than overwriting them.

See @cowboy's dotfiles for an example of this approach.

Update install script to install xCode Command Line Tools automatically

Incase you were curious, xcode-select in Mac OS X 10.9 (Mavericks) comes with an --install flag that will prompt the user if xCode Command Line Tools is not installed. I had created a recursive script to check installation and continually attempt an install, but then realized that the latest version of Homebrew does this so much better. So you could attempt to install brew first and then have Homebrew install gcc via xCode. Just a thought.

bash_prompt not using all colors

I'm using mathiasbynens/dotfiles but swapped his bash_prompt with yours. But the result I am getting is this: http://d.pr/dd69

Which doesn't quite match your screenshot. What did I screw up?

NOTE:

  • I am on OS X 10.6.8
  • I am bravely trying this stuff for the first time, as I am completely new to it all.

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.