Git Product home page Git Product logo

dotfiles's Introduction

geerlingguy's dotfiles

My configuration. Minimalist, but helps save a few thousand keystrokes a day. I use macOS, so I can only guarantee they'll work on a Mac, but I use some of these dotfiles on various linux servers, and they seem to be pretty flexible.

You may also be interested in my Mac Development Ansible Playbook, which configures a Mac from scratch using Ansible, and incorporates the installation and updating of a set of dotfiles like this one.

License

MIT / BSD

dotfiles's People

Contributors

geerlingguy 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

dotfiles's Issues

.osx problem setting default desktop background

It looks like with newer versions of OS X (I'm on Mojave, 10.14.6) the desktop background you've got in the script no longer exists. When you run the line to update the background the Dock gets stuck in a loop where it's constantly crashing with an error that looks very similar to this one:

2018-08-18 22:05:31.276 Dock[1061:44244] -[__NSCFNumber stringByExpandingTildeInPath]: unrecognized selector sent to instance 0xe5cdf6a4f4b8bcfb
2018-08-18 22:05:31.277 Dock[1061:44244] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[__NSCFNumber stringByExpandingTildeInPath]: unrecognized selector sent to instance 0xe5cdf6a4f4b8bcfb
# michael @ xanadu in ~ [11:20:53]
$ ls /Library/Desktop\ Pictures/Solid\ Colors
 Black.png         'Dusty Rose.png'      Gold.png   'Red Orange.png'  'Soft Pink.png'        Stone.png              Yellow.png
'Blue Violet.png'  'Electric Blue.png'   Ocher.png  'Rose Gold.png'   'Space Gray Pro.png'   Teal.png
 Cyan.png          'Gold 2.png'          Plum.png    Silver.png       'Space Gray.png'      'Turquoise Green.png'

Add flag --no-restart to allow script to be run without affecting open apps

Often this command is run inside a Terminal session or in a way in which the restart of Finder, Dock, Terminal, Mail, UIServer, etc. can be quite jarring... especially when run as part of an automated process.

So I'd like to add a --no-restart flag to allow the script to run without restarting any services or open applications.

Allow to run without sudo access

Right now, this script always prompts for/requires sudo privileges, which can make automated runs annoying if not (sometimes) impossible. I'd like to make the commands requiring sudo optional, and only perform sudo-related stuff if the script is run with sudo/as root.

I'll still warn if not run with sudo, but most everything can be configured without sudo anyways.

Bash PS1 variable issues

export PS1="\[\e[0;32m\]\]\[\] \[\e[1;32m\]\]\t \[\e[0;2m\]\]\w \[\e[0m\]\]\[$\] "

Hi @geerlingguy, was using your PS1 variable for my prompt on macOS High Sierra via iTerm and having no issues but recently I upgraded Bash to version 5.0 using Homebrew and discovered issues with my prompt. If I typed a command that extended to the far right end of the line, additional characters were placed at the start of the same line, overwriting the line rather than jumping to the next one. By making some tweaks to your PS1 variable I was able to resolve that issue. Here is what I came up with:

export PS1="\[\e[0;32m\] \[\e[1;32m\]\t \[\e[0;2m\]\w \[\e[0m\]\$ "

I noticed you had an extraneous \] sequence after each color code (in addition to the correct escape wrapper). Also the and $ were unnecessarily marked as non-printable characters, which caused my ctrl-a presses to move the cursor back onto the $ rather than two positions after it.

Not sure why the bug wasn't showing up with the default Bash install but you can try to reproduce the issue by installing a different version of Bash.

License?

Hi! Your dotfiles look awesome, what are these licensed under? Could you add it to the repo?

Thank you very much!

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.