danielgibbsnz / bootstrap Goto Github PK
View Code? Open in Web Editor NEWScript to download and install my configuration files and other settings.
Script to download and install my configuration files and other settings.
On OSX 10.9 and later, defaults are cached so when you use the defaults
command you aren't working with the actual values. Use the following alias to flush the cache (source: http://hints.macworld.com/article.php?story=20130908042828630).
alias fixpref='killall -u $(whoami) cfprefsd'
There's no point applying the OS X defaults every time the script is run, so add a version number to the script and store the installed version somewhere (plist?) and then only apply the defaults if the version number doesn't match.
au BufRead,BufNewFile *.md set filetype=markdown
I don't think I've ever used Modula so this shouldn't be a problem.
E.g. /Volumes/Some Disk/Users/daniel
. This should be fixed by either:
echo -n -e "\033]0;TITLE\007"
e.g. bootstrap --execute=brew,pip,pip3
.
__git_ps1
seems to be located in /usr/local/etc/bash_completion.d/git-prompt.sh
on OS X and isn't currently loaded.
Relevant:
It doesn't really get used globally, but it would be nice to have somewhere where my syntactical preferences are stored/available.
# Always use the physical path (resolve symlinks).
set -P
Not all fonts work.
Saw these in another config file, should probably check what they do before including them.
defaults write -g KeyRepeat -int 0
defaults write -g InitialKeyRepeat -int 15
As part of the defaults setting, add certain apps to the dock if they aren't already present.
This should be possible on OS X and maybe Windows. Unsure about Linux though.
Git bash completion can be found in /etc/bash_completion.d/git
in Cygwin's git install. However __git_ps1
is not included, so should be installed by bootstrap (from https://raw.githubusercontent.com/git/git/master/contrib/completion/git-prompt.sh).
The current font repository has been deprecated in favour of https://github.com/google/fonts. Update the fonts list to reflect this.
Bootstrap run with no arguments should execute all the sections, bootstrap run with a list of sections as arguments should execute only those sections, and bootstrap run with a --skip
option should execute all sections except for the skipped ones.
Include .envrc and others from https://gist.github.com/octocat/9257657.
PS1 is missing some \]
s which cause weird terminal issues.
Ctrl+Alt+Up/Down/Left/Right with support for multiple screens.
Maybe ability to move windows across spaces and/or screens.
E.g.
[daniel@host directory (branch)]$ label FOO
[daniel@host directory (branch) FOO]$ label BAR
[daniel@host directory (branch) BAR]$ label
[daniel@host directory (branch)]$
The current Phoenix config doesn't work particularly well for windows which don't always set their frame exactly as asked. A couple of examples (on macOS):
The Phoenix config should be updated to be more tolerant to handle these two cases. E.g.
[log]
decorate = auto
or git config --global log.decorate auto
bootstrap --replace
: always replace existing files with downloaded files.bootstrap --no-replace
: never replace existing files with downloaded files.bootstrap --keeptmp
: don't delete the temporary directory (for debug purposes).bootstrap --clean
: remove any temporary bootstrap files (e.g. /tmp/bootstrap*
, ~/.*.bootstrap
).bootstrap --help
: display a list of command line options."\e[A": history-search-backward
"\e[B": history-search-forward
Investigate other options.
As the number of downloaded files increases, it would be neater to put them in /tmp/bootstrap
instead of /tmp
.
e.g. bootstrap --choose=config,brew,pip,pip3
. This would bring up some sort of interactive list that allows the user to toggle which config files, formulae, or packages should be installed.
set exrc
set secure
Looks like there are security issues with this though. Check out https://stackoverflow.com/questions/456792/vim-apply-settings-on-files-in-directory.
These are stored in a plist as NSData but defaults
doesn't seem to be able to set nested values, and Plistbuddy
can't set data.
Fix warnings and errors noted by Shellcheck.
sudo defaults write /Library/Preferences/FeatureFlags/Domain/UIKit.plist emoji_enhancements -dict-add Enabled -bool NO
Source: https://www.reddit.com/r/MacOS/comments/16wzdk9/is_there_a_way_to_turn_off_the_new_emoji/
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.