GithubHelp home page GithubHelp logo

fatso83 / dotfiles Goto Github PK

View Code? Open in Web Editor NEW
295.0 9.0 108.0 1.42 MB

Cross-platform dotfiles shared by macOS and Linux (native and WSL2)

License: Other

Shell 30.90% JavaScript 6.06% PowerShell 0.53% Python 0.91% Ruby 2.76% Vim Script 58.69% Makefile 0.04% C 0.11%
dotfiles tmux vim linux utilities cross-platform inotify

dotfiles's Introduction

My dot files

Say Thanks!

These are my config files for Bash, VIM, Python, tmux and more. Also includes a handful of utility scripts and quite a lot of aliases/functions I find useful and re-use quite often.

This repo is under a do as you please license :)

Intentionally simple

I really hate code or configuration that I don't understand. It might do magical things, but when things ago awry, and they do, I need to be able to fix it. In this setup, I have handwritten (or at least hand copied ๐Ÿ˜ƒ) every line, and I have tried to document (commit msg or inline comment) why the line exists if it is scary or weird in some way. I encourage you to read the various setup files to understand how it works and prod around yourself :)

Supports per machine/os settings

Which programs to install and how is of course unique to every operating system. This setup supports this quite fine, so I can get my tools, no matter if macOS or WSL2.

See per-host-config/README.md

OS independant utils (macOS and Linux friendly)

Some of the common utilities uses environment switches to handle BSD vs GNU issues and such automatically. Examples of this are util.esed and util.size. This way I can use these utils to get (mostly) platform independant scripts :)

Installation

WARNING

This repo and its configs includes my settings, which means that if you run the ./setup.sh script, it will overwrite your existing configuration files. I have taken steps to ensure that any personal settings involving names are not re-used (was causing issues), so your Git committer info will be safe :)

Steps

git clone https://github.com/fatso83/dotfiles
./dotfiles/setup.sh # and wait until completion ...

install vid

The first time you run the install it will take some time, mostly due YouCompleteMe, which needs to be downloaded and compiled. It might seem as if the install hangs on this step, but this only takes a lot of time the first time you run setup. On subsequent ./setup.sh runs, it should not take more than a second or two.

Debugging

bash.rc related shell issues

For debugging an issue after installing, the first thing is to uncomment the line in ~/.bashrc that says "# DEBUG=1". This will print out lots of debugging info. The second thing to do, once you now approximately where things go wrong is to add set -x (print lots of debugging info on commands executing) and set -e (exit on first error - should mostly already be set)l

sourced files

If you encounter an issue in a sourced file, it might be a bit difficult to debug if they contain exit 1 or calls to the error util. Just do this instead:

bash -c "ROOT=$PWD source ./shared.lib"

dotfiles's People

Contributors

11ib avatar afreisinger avatar alex9446 avatar ambiamber avatar bdowling avatar claudiodangelis avatar dependabot[bot] avatar fatso83 avatar realsimix avatar roy-bentley avatar the-supercoach 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

dotfiles's Issues

Thousands separators for `inotify-consumers`

First off, thanks for creating the inotify-consumers script, it's incredibly useful!

How would I go about printing large numbers with thousands separators? (For the count and pid columns, and the totals row.)

bash setup

Hi Carl !

Amazing dotfiles repository !

Hopefully you can guide me, since I can't find the solution. When I run on my mac with zsh by default, the command source ./.bashrc the script runs partially but in terminal it shows me
"node / 16.9.1
Use up / down arrow keys to select a version, return key to install, d to delete, q to quit "

I press return key or quit, but

cp: /usr/local/n/versions/node/16.9.1/lib/dtrace: unable to copy extended attributes to / usr / local / lib / dtrace: Bad file descriptor
cp: /usr/local/lib/dtrace/node.d: Permission denied
rm: /usr/local/lib/node_modules/npm/man/man5/npmrc.5: Permission denied
and much more

The script ends but I don't know what happened.
Another detail is the terminal prompt, it returns after executing any command successfully, -sh: __git_ps1: command not found

Thanks a lot !
Regards

Adrian

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.