Skip to content
Sam King's Linux Config Files
Vim script Shell Python CSS
Branch: master
Clone or download
Latest commit 942f520 Oct 25, 2019
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
vim Allow per-computer python indentation configuration Mar 31, 2015
.gitignore Add dircolors submodules to gitignore Apr 23, 2017
.hgignore Added gitignore for private files May 18, 2013
README.md Shortened README header so it fits on one line Sep 20, 2014
ackrc ackrc ignores Python code coverage reports Jan 20, 2016
backup-mysql.py gzip mysql dumps Dec 12, 2016
eclimrc Added Eclimrc file for the Eclim eclipse/vim plugin. Jul 25, 2012
enable-two-finger-scrolling.bash added cite Jun 20, 2013
fix-default-editor.bash Added a command to fix the default editor in Ubuntu Jul 1, 2013
fix-dropbox.bash fix missing locales! Apr 30, 2013
fix-drupal-permissions.py removed trailing whitespace Nov 26, 2013
fix-missing-locales.bash fix missing locales! Apr 30, 2013
fix-terminal-tab-color.bash made executable Jun 6, 2013
git-commands-for-bash.bashrc Removed extra tab before body line on gitl Jul 16, 2013
gitconfig Better git highlighting Oct 25, 2019
gitignore Made file not be dot files. Added an hgignore. Apr 29, 2012
hg-commands-for-bash.bashrc Added note about sourcing in shell config file Jul 16, 2013
hgrc Changed email to sam@samking.org Jun 30, 2013
lock-with-screen-off.bash Ctrl+Alt+L normally doesn't turn the screen off in Ubuntu. This is a … Jun 2, 2013
login Added better note on login file Jul 16, 2013
sample-backup-mysql.my.cnf Added mysql backup script Jun 30, 2013
sample-gtk.css Current tab is highlighted. Grey is lighter. Jun 6, 2013
sample-ssh-config added sample sshconfig file May 22, 2013
screenrc Support scrolling in screen Oct 28, 2016
setup-gnome-solarized.bash Add xfce solarized for xubuntu Aug 23, 2017
setup-lamp-drush.bash Add setup lamp drush script Nov 26, 2016
setup-startup-scripts.bash Support old versions of bash Nov 30, 2016
setup-xfce4-solarized.bash Make xfce solarized executable Aug 23, 2017
setup-ycm.bash Rename Nov 26, 2016
vimrc Only set the shell in vimrc if that shell is installed Mar 21, 2018
zshenv Use whatever vim is available Nov 15, 2016
zshrc Properly check if dircolors exists Dec 13, 2016

README.md

Sam King's Config Files and Scripts

This contains the following config files:

  • Shells: zshrc, zshenv, login
  • Editors: vimrc, vim directory, eclimrc
  • Version Control: hgrc, gitconfig, gitignore

To use these config files, do the following:

  1. Fork this repo so that you can make your own changes.
  2. Clone your repo. I'll assume it's in ~/config-files.
  3. Run grep -n CUSTOMIZE ~/config-files to find all of the lines you need to change (eg, your username isn't samking, so it would probably be bad for your gitconfig to indicate that your username was samking).
  4. Run ~/config-files/setup-startup-scripts.bash to add includes from your actual dot files (eg, ~/.vimrc) to the ~/config-files folder.

It also contains scripts that do the following:

  • Backup mysql to Dropbox (useful as an easy backup scheme for servers)
  • Enable two finger scrolling (useful when your hardware touchpad supports two finger scrolling but Ubuntu won't let you turn it on)
  • Change the default editor in Ubuntu
  • Remove the 10,000 folder limit in Dropbox
  • Fix the permissions in a Drupal directory
  • Fix missing locales (if your terminal hasn't yelled at you about this, you don't need to worry about it)
  • Make it easier to see what the currently selected tab is in the Ubuntu terminal
  • Turn the screen off when locking the screen

Any per-computer settings should go in your actual dotfiles (eg, if I want to define an alias that only lives on my work computer, it should go in ~/.zshrc). Any settings that you want reflected on all of your computers should go in ~/config-files. That way, you can sync your computers using git push and git pull.

Note that most of the files in this repo aren't dot files (files whose names start with a dot). That's because dot files are hidden by default, and it's more convenient to see these files by default. However, your real config files (eg, ~/.vimrc still need to be dot files.

You can’t perform that action at this time.