Skip to content

Commit

Permalink
mend
Browse files Browse the repository at this point in the history
  • Loading branch information
JDevlieghere committed Jan 29, 2017
1 parent 97a7bf9 commit ce56622
Show file tree
Hide file tree
Showing 5 changed files with 28 additions and 12 deletions.
4 changes: 0 additions & 4 deletions .gnome

This file was deleted.

19 changes: 14 additions & 5 deletions README.md
Expand Up @@ -33,12 +33,21 @@ self-explanatory. For C++ development, I rely heavily on
[a better
.ycm_extra_conf.py](https://jonasdevlieghere.com/a-better-youcompleteme-config/).

## macOS
## OS Specific Configuration

The `.macos` file contains some sensible defaults for OSX, heavily inspired by
[Mathias Bynens'
dotfiles](https://github.com/mathiasbynens/dotfiles/blob/master/.osx). These
are automatically set on running the bootstrap script under macOS.
The shell scripts in the `os` folder contains configurations for different
operating systems. These files are automatically executed when running the
bootstrap script under the corresponding operating system.

### macOS

The `os/macos.sh` file contains some sensible defaults for OSX. The file is
heavily inspired by [Mathias Bynens'
dotfiles](https://github.com/mathiasbynens/dotfiles/blob/master/.macos).

### Linux

The `os/linux.sh` file contains some configuration values for Gnome 3.

## tmux

Expand Down
10 changes: 7 additions & 3 deletions bootstrap.sh
@@ -1,6 +1,6 @@
#!/usr/bin/env bash

pushd `dirname $0` > /dev/null
pushd "dirname $0" > /dev/null
DOTFILES=`pwd -P`
popd > /dev/null

Expand Down Expand Up @@ -54,7 +54,11 @@ doConfig() {
info "Configuring"
if [ "$(uname)" == "Darwin" ]; then
echo "Configuring OSX"
source "$DOTFILES/.macos"
source "$DOTFILES/os/macos.sh"
fi
if [ "$(uname)" == "Linux" ]; then
echo "Configuring Linux"
source "$DOTFILES/os/linux.sh"
fi
echo "Configuring global gitignore"
git config --global core.excludesfile ~/.gitignore_global
Expand All @@ -72,7 +76,7 @@ if [ "$1" == "--sync" ]; then
doSync
elif [ "$1" == "--install" ]; then
doInstall
elif [ "$1" == "--fonts" ]; then
elif [ "$2" == "--fonts" ]; then
doFonts
else
doAll
Expand Down
7 changes: 7 additions & 0 deletions os/linux.sh
@@ -0,0 +1,7 @@
#!/usr/bin/env bash

if [ "$GDMSESSION" == "gnome" ]; then
echo "Configuring GNOME"
gsettings set org.gnome.desktop.peripherals.keyboard delay 250
gsettings set org.gnome.desktop.peripherals.keyboard repeat-interval 15
fi
File renamed without changes.

0 comments on commit ce56622

Please sign in to comment.