Coder Social home page Coder Social logo

dotfiles's Introduction

dotfiles

Add some tweaks into current Unix/Ubuntu user's home directory. Inspired by https://github.com/paulirish/dotfiles for MacOS. For Windows I prefer my https://github.com/StefanScherer/dotfiles-windows.

This is what the terminal looks like

dotfiles.png

Installation

git clone https://github.com/StefanScherer/dotfiles && cd dotfiles && ./sync.sh

To update later on, just run the sync.sh again.

The usage of sync.sh is

sync.sh [--all|-a] [--force|-f]

--all|-a     install all tools, also YouCompleteMe (big dependencies)
--force|-f   force overwriting files in $HOME

Tools

  • autoenv - Directory-based environments
  • addtime: show relative time stamp in stdout of another tool. Usage: anothertool | addtime
  • timeref: show relative time diffs in logfile. Usage: timeref logfile | gvim -
  • Fn + F12: toggle One Dark/Light theme in terminal
  • t: toggle Dark Mode of macOS and Windows from WSL
  • whoseport: Who is running that port?
  • z: "z foo" - cd to most frecent dir matching foo

Aliases

  • ..: one dir up
  • ...: two dirs up
  • ....: three dirs up
  • .....: four dirs up
  • ~: go into users home directory
  • eachdir: start a command for all sub directories
  • gi: create .gitignore file, see gitignore.io
  • gitcloneall: clone all repos of an organization or user
    Usage: gitcloneall [email protected]:YOUR_ORG [user[:pass]]
    Clones all repos of a GitHub org or user.
    
    gitcloneall [email protected]:StefanScherer
    gitcloneall [email protected]:myorg myuser:password_to_access_private_repos
    
  • gitall: start a git command for all sub directories
    gitall pull
    
    vi */README.md
    
    gitall add README.md
    gitall commit -m "updated README.md"
    gitall push
    
  • gitls: show git status of all repos in current dir, you may add args like in ls to filter dirs gitls.png
  • git undo-commit: undo last commit, as it says
  • hosts: edit your hosts file
  • logvi logfile: view a log file with relative times in gvim
  • ssh-me: copy my SSH key to remote machine and install my dotfiles there

Docker

  • dps: like docker ps, but with less columns
  • dm: docker-machine shortener: dm dev or dm start dev or dm ip dev ...
    • dm dev is a shortcut for eval $(docker-machine env dev)
    • also integrates my windows-docker-machine's 2016, 1709 and insider using Vagrant to start/stop them
    • also integrates my docker-windows-azure machines az2016 and az1709 using azure cli to start/stop them

VIM

  • installs Vundle and some other stuff
  • EditorConfig

VIM commands

  • ,c: show trailing white space
  • ,ss: strip trailing white space
  • ,e: format JavaScript code with esformatter (npm install -g esformatter)

Setup a new Mac box

The simplest way to setup a new Mac box is to download and run the setup-mac script.

curl https://raw.githubusercontent.com/StefanScherer/dotfiles/master/setup-mac | bash

check_macos_updated install_brew install_dotfiles install_terminal_profiles install_brew_packages

  1. It will run all macOS updates before it installs anything. Maybe you have to run it again after installing updates and rebooting the machine.
  2. It install brew
  3. It clones this dotfiles repo and executes the sync.sh script to install/update it
  4. It installs the One Dark/Light terminal profiles
  5. It installs all brew packages in brew.txt
  6. It installs all brew casks in cask.txt

Things you have to do manually

  • Run SizeUp and enter the license
  • Insert your Vagrant VMware license

Licensing

Copyright (c) 2014 Stefan Scherer

MIT License, see LICENSE.txt for more details.

dotfiles's People

Contributors

scherermichael avatar seal-ss avatar stefanscherer 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

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

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.