Giter Site home page Giter Site logo

setup's Introduction

MoOx setup

Dotfiles, aliases, functions, preferences, apps. Everything.

kaboom

From time to time

zprezto-update

git -C $SETUP_PATH pull origin master

source $SETUP_PATH/dotfiles/.zshrc

sourceFiles $SETUP_PATH/preferences/*.prefs

brew upgrade

brew bundle check

$SETUP_PATH/scripts/vscode-backup.sh

First run

Open App Store, get your apps you download from this place (hello Xcode), then

export SETUPSH_GIT_NAME=MoOx
export SETUPSH_GIT_EMAIL=
export SETUPSH_PHONE=
export SETUP_PATH=$HOME/setup

# Ask for the administrator password upfront
sudo -v

# security
defaults write com.apple.screensaver askForPassword -int 1
defaults write com.apple.screensaver askForPasswordDelay -int 0
sudo defaults write /Library/Preferences/com.apple.alf globalstate -int 1
sudo launchctl load /System/Library/LaunchDaemons/com.apple.alf.agent.plist 2>/dev/null
sudo defaults write /Library/Preferences/com.apple.loginwindow LoginwindowText  "Found this computer? Please contact $SETUPSH_GIT_NAME at $SETUPSH_GIT_EMAIL or +33$SETUPSH_PHONE for a reward.\nVous avez trouver cet ordinateur? Merci de contacter $SETUPSH_GIT_NAME à $SETUPSH_GIT_EMAIL ou au 0$SETUPSH_PHONE pour une récompense."

# install pretzo
# https://github.com/sorin-ionescu/prezto/#installation
git clone --recursive https://github.com/sorin-ionescu/prezto.git "${ZDOTDIR:-$HOME}/.zprezto"

# define zsh as default shell
chsh -s /bin/zsh $USER

# Command Line Tools (CLT) for Xcode
xcode-select --install
sudo xcodebuild -license

# Install Homebrew
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"

git clone https://github.com/$SETUPSH_GIT_NAME/setup.git $SETUP_PATH

for file in $SETUP_PATH/functions/* do; source $file; done

sourceFiles $SETUP_PATH/preferences/*.prefs

dotfiles

mv $HOME/Library/Application\ Support/Code/User SETUP_PATH/dotfiles/.vscode-Library___Application\ Support___Code___User || mkdir -p $HOME/Library/Application\ Support/Code
ln -s SETUP_PATH/dotfiles/.vscode-Library___Application\ Support___Code___User $HOME/Library/Application\ Support/Code/User

source $SETUP_PATH/.zshrc

macos-hidden-show
chflags -h nohidden $HOME/Library

dotfiles "$HOME/Library/Mobile Documents/com~apple~CloudDocs/.home"
# lnfs-subfolders $DIR_SYNC/Library $HOME/Library
# lnfs-subfolders "$DIR_SYNC/Library_Application Support" "$HOME/Library/Application Support"

brew install mas

mas signin --dialog $SETUPSH_GIT_EMAIL

brew bundle

setup's People

Contributors

bitdeli-chef avatar madx avatar moox 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

setup's Issues

Some applications keep installing themselves

Each time I launch fireinthehole, some applications keep installing themselves, even if they are already installed.

==> Downloading http://c758482.r82.cf2.rackcdn.com/Sublime%20Text%20Build%203065.dmg
######################################################################## 100.0%
==> Symlinking App 'Sublime Text.app' to '/Applications/Sublime Text.app'
==> Generic artifacting Artifact 'Sublime Text.app' to '/Applications/Sublime Text.app'
==> Symlinking Binary 'subl' to '/usr/local/bin/subl'
🍺  sublime-text3 installed to '/opt/homebrew-cask/Caskroom/sublime-text3/Build 3065' (106 files, 27M)
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100  129k  100  129k    0     0   115k      0  0:00:01  0:00:01 --:--:--  115k
❯ Updating LimeChat theme ...
Current branch master is up to date.
❯ Installing Slack (slack) into /Applications ...
==> Downloading https://rink.hockeyapp.net/api/2/apps/38e415752d573e7e78e06be8daf5acc1/app_versions/2?format=zip&avtoken=b79aac107b7fda6c56fc5af6052bbc1713da870e
######################################################################## 100.0%
==> Symlinking App 'Slack 0.44.2.app' to '/Applications/Slack 0.44.2.app'
==> Generic artifacting Artifact 'Slack 0.44.2.app' to '/Applications/Slack 0.44.2.app'
🍺  slack installed to '/opt/homebrew-cask/Caskroom/slack/0.44.2' (181 files, 8.4M)
No matching processes belonging to you were found

Weird path installation

I get some weird installation paths like Installing Transmit (transmit) into image alpha or Cloud (cloud) into grand perspective

See below.

❯ Installing Transmit (transmit) into imagealpha ...
==> Downloading https://www.panic.com/transmit/d/Transmit%204.4.8.zip
Already downloaded: /Library/Caches/Homebrew/transmit-4.4.8.zip
==> Symlinking App 'Transmit.app' to '/Users/macuser/.ssh/imagealpha/Transmit.ap
==> Generic artifacting Artifact 'Transmit.app' to '/Users/macuser/.ssh/imagealp
🍺  transmit installed to '/opt/homebrew-cask/Caskroom/transmit/4.4.8' (1678 files, 67M    )
❯ Installing Cloud (cloud) into grandperspective ...
==> Downloading https://s3.amazonaws.com/downloads.getcloudapp.com/mac/CloudApp-
Already downloaded: /Library/Caches/Homebrew/cloud-3.0.1.zip
==> Symlinking App 'Cloud.app' to '/Users/macuser/.ssh/grandperspective/Cloud.ap
==> Generic artifacting Artifact 'Cloud.app' to '/Users/macuser/.ssh/grandperspe
🍺  cloud installed to '/opt/homebrew-cask/Caskroom/cloud/3.0.1' (331 files, 13M)

Is $HOME/Applications necessary?

For example in lines such as the following, it this necessary since /Applications will be the default folder?
brewcaskinstall Slate $HOME/Applications

git command is executed even inside a string

When launching firstrun, the git command is executed even if it's inside a string.
Should the markdown syntax be working in the shell? I guess it didn't like the back-ticks around git
Maybe simple quote are enough.

This is what I got.

** Before running myself, please be sure you have usage: git [--version] [--help] [-C <    path>] [-c name=value]
           [--exec-path[=<path>]] [--html-path] [--man-path] [--info-path]
           [-p|--paginate|--no-pager] [--no-replace-objects] [--bare]
           [--git-dir=<path>] [--work-tree=<path>] [--namespace=<name>]
           <command> [<args>]

The most commonly used git commands are:
   add        Add file contents to the index
   bisect     Find by binary search the change that introduced a bug
   branch     List, create, or delete branches
   checkout   Checkout a branch or paths to the working tree
   clone      Clone a repository into a new directory
   commit     Record changes to the repository
   diff       Show changes between commits, commit and working tree, etc
   fetch      Download objects and refs from another repository
   grep       Print lines matching a pattern
   init       Create an empty Git repository or reinitialize an existing one
   log        Show commit logs
   merge      Join two or more development histories together
   mv         Move or rename a file, a directory, or a symlink
   pull       Fetch from and integrate with another repository or a local branch
   push       Update remote refs along with associated objects
   rebase     Forward-port local commits to the updated upstream head
   reset      Reset current HEAD to the specified state
   rm         Remove files from the working tree and from the index
   show       Show various types of objects
   status     Show the working tree status
   tag        Create, list, delete or verify a tag object signed with GPG

'git help -a' and 'git help -g' lists available subcommands and some
concept guides. See 'git help <command>' or 'git help <concept>'
to read about a specific subcommand or concept. command working **.

Activate remote login (for personal use or emergency like thief)

Start by changing default SSH port

e /private/etc/services

Add your own port

ssh2             22222/udp  # SSH Remote Login Protocol
ssh2             22222/tcp  # SSH Remote Login Protocol

Edit

e /System/Library/LaunchDaemons/ssh.plist

& Change

<key>SockServiceName</key>
<string>ssh2</string>

don't make brew cleanup all the times

i wanted to reuse recently downloaded app to make 2 fresh install on 2 computers & using a copy: in my ass.
Found a way to make it "every 2 weeks"

Refactor everything by topic

This will allow faster setup for the first run, with only required topic executed.
Secondary stuff & specific projects stuff will be run later during the process, allow us to have a working env available asap.

customize osx notifications

If you have a good Twitter client with notifications you can remove duplicate OS X notifications: System Preferences > Notifications Center > Remove Twitter from center & choose "None" for alert style.

Finder Sidebar

  • uncheck All my files and iDisk
  • adjust all folder I use.

Completly new organisation

I'm considering refactor as following

  • explode generic (setup) & personnal (prefs) stuff: easier for people to reuse without having to fork or copy/paste/adjust
  • component -> package: a package can be a simple app, or something more complicated like ddclient.

Core will have

  • apt-get/brew/chocolatey + current index.sh + firstrun + some bin prefixed by the + command to easily update prefs (or just some part).

What package can have:

  • install script (mainly for config)
  • update script
  • bin/*
  • default config and/or config template
  • template for prefs if not prefs exists
  • some way to create/adjust env vars (ex: {package}_PATH and PATH)

Core

  • core stuff
  • packages/*

User instance:

  • bin/kaboom equivalence (list of packages)
  • an eventual simple way to include some random stuff (component/misc/setup + misc prefs)
  • prefs/* that can be versionned
  • aliases/*
  • functions/*
  • maybe something like packages/*/(prefs|aliases|function|whatever) per packages ?

This way anybody can git pull from the core

Envisaged name for this project: setupsh
(setup + sh (KISS); or setupsssh!; setupssh should be avoided, cause of "ssh" inside)

Missing icon applications in dock

After the installation is complete, some icon applications are missing in the dock.
screen shot 2014-10-09 at 7 50 34 pm

The first one is Firefox and the second one is the iPhone simulator.
When I click on them, nothing happens.

rename this project

Clearly it's not just dotfiles (dotfiles folder prove it). Here is some idea according to the submodule that will be created:

  • my-setup
  • my-setupsh (submodule will likely to get setupsh as name)
  • my (à la @kud) - seems not enough
  • my-config
  • our-setup (à la boxen)
  • setup (why not just that ?)

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.