squarefrog / dotfiles Goto Github PK
View Code? Open in Web Editor NEWA collection of my Vim and zsh files
A collection of my Vim and zsh files
#create folder
$ mkdir ~/Library/Developer/Xcode/UserData/FontAndColorThemes
#copy color theme file to this new folder
$ cp color_theme.dvtcolortheme ~/Library/Developer/Xcode/UserData/FontAndColorThemes
Add a preference to set this. Looks like the preference file is com.apple.storeagent ?
< Button2 = 2;
< Button3 = 3;
apt-get update
apt-get vim git
brew update && brew upgrade && brew cleanup
gem cleanup
Jump to frequently used folders:
https://github.com/nchourrout/dotfiles/blob/master/utils/utils.sh#L38-L54
# Update software
seek_confirmation "Update Apple Software?"
if is_confirmed; then
sudo softwareupdate -i -a
fi
This is really neat.
osx.sh should check for existence of com_apple_SearchSystemFilesAttribute
before adding.
running "allow spotlight for system files"
defaults write com.apple.finder SlicesRootAttributes -array-add \
kMDItemFSInvisible \
com_apple_SearchSystemFilesAttribute;ok
> SlicesRootAttributes = (
> kMDItemKind,
> kMDItemLastUsedDate,
> kMDItemContentModificationDate,
> kMDItemContentCreationDate,
> kMDItemDisplayName,
> kMDItemTextContent,
> "com_apple_SearchSystemFilesAttribute"
> );
Thanks for the Keyboard/Mouse configs.
Just FYI on most BASH installs ctrl-a is already assigned.
Ctrl + a Go to the beginning of the line (Home)
Install Brews? YInstalling Brews...
In bootstrap.sh
add an empty echo to return.
It would be better if you could just run
./install.sh --with-casks
Rather than prompting during the install.
Quick edit vimrc files
<Leader>ev
- Edit ~/.vimrc
<Leader>evbundles
- Edit ~/.vimrc.bundles
<Leader>evk
- Edit ~/.vimrc.keys
This is pretty cool:
brew_install_or_upgrade() {
if brew_is_installed "$1"; then
if brew_is_upgradable "$1"; then
fancy_echo "Upgrading %s ..." "$1"
brew upgrade "$@"
else
fancy_echo "Already using the latest version of %s. Skipping ..." "$1"
fi
else
fancy_echo "Installing %s ..." "$1"
brew install "$@"
fi
}
Taken from Thoughtbot OSX file.
Looks like ctrlp will fit in better with neobundle
curl -fsSL https://raw.github.com/supermarin/Alcatraz/master/Scripts/install.sh | sh
if ! which xcodebuild &> /dev/null; then
echo "Attempting to install the Xcode developer tools"
$(xcode-select --install)
fi
If brew exists, may as well update it.
http://alexlitel.tumblr.com/post/53154780770/what-to-do-if-spotify-is-running-slow-on-your
Using Finder, under the Go menu at the top of the screen, select the Go to Folder option (you can also press Command+Shift+G to access). Inside the “Go to the folder” field that pops up, type or paste ~/Library/Caches/com.spotify.client/
and then click “Go” or press Enter.
Delete everything inside the com.spotify.client
folder. You can select all of the items by pressing Command+A.
Using the Go to Finder option from Step 1, go to ~/Library/Application Support/Spotify/
.
Inside the Spotify folder, look for a file called prefs
. Open this file in Notepad and add storage.size=1024
on a new line at the end of the file. Save this file. This should limit the size of Spotify’s cache to 1024MB or 1GB; you can change the 1024
value if you would like the cache to be smaller or larger.
Delete the PersistentCache
folder inside the Spotify
folder.
Sync adium preferences. Set up a folder and include theme too.
ln -s ~/dotfiles/zsh/.zsh/plugins/pure/async.zsh ~/dotfiles/zsh/.zsh/functions/async
# Show fast user switching menu as: icon
defaults write -g userMenuExtraStyle -int 2
Need a way to set black and white dropbox icon.
Prezto submodule is declared using SSH rather than HTTPS
Add /Fonts folder with powerline font in
Linux
/usr/share/fonts/opentype
OS X
~/Library/Fonts
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
I have iterm colours, but terminal needs adding too.
/Users/pi/.zshrc:source:23: no such file or directory: /Users/pi/.rvm/scripts/rvm
https://github.com/squarefrog/dotfiles/blob/master/shell/zshrc#L23
defaults read com.apple.Terminal "Window Settings" | grep Tomorrow
If blank, open ....
Same for iTerm
defaults read com.googlecode.iterm2 "Custom Color Presets" | grep Tomorrow
Need to add a Symlink for squarefrog.zsh-theme
to manage script.
For example
Move theme to:
~/Library/Developer/Xcode/UserData/FontAndColorThemes
# Continue building after errors
defaults write com.apple.dt.Xcode IDEBuildingContinueBuildingAfterErrors 1
I think it would be much neater if I grouped dotfiles into their own folders.
shell
|- aliases
|- bash_profile
|- bashrc
|- exports
|- shellrc
vim
|- gvimrc
|- vimrc
|- vimrc.bundle
|- xvimrc
zsh
|- squarefrog.zsh-theme ?
|- zshrc
Xcode has forced my muscle memory...
nmap <D-[> <<
nmap <D-]> >>
vmap <D-[> <gv
vmap <D-]> >gv
nmap <T-[> <<
nmap <T-]> >>
vmap <T-[> <gv
vmap <T-]> >gv
Look at zsh syntax highlighting. https://github.com/zsh-users/zsh-syntax-highlighting/tree/master/highlighters
The bootstrap script should install terminal/iterm themes.
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.