diff --git a/dotfiles/bashrc b/dotfiles/bashrc index efb7548..831d2a3 100644 --- a/dotfiles/bashrc +++ b/dotfiles/bashrc @@ -119,6 +119,9 @@ if ! shopt -oq posix; then fi fi +# map esc to caps lock +xmodmap -e 'clear Lock' -e 'keycode 0x42 = Escape' + export PHPBREW_SET_PROMPT=1 source "$HOME/.phpbrew/bashrc" diff --git a/dotfiles/bin/a2changedocumentroot b/dotfiles/bin/a2changedocumentroot new file mode 100755 index 0000000..9142c1a --- /dev/null +++ b/dotfiles/bin/a2changedocumentroot @@ -0,0 +1,12 @@ +#!/bin/sh + +if [ -z "$1" ] || [ -z "$2" ]; then + echo "USAGE: a2changedocumentroot new/documentroot apache/config/file" + exit 128 +fi + +sed -i "/DocumentRoot/c\ DocumentRoot $1" $2 + +echo "Document Root has been changed restarting apache" + +sudo service apache2 restart diff --git a/dotfiles/tmux.conf b/dotfiles/tmux.conf index 566a143..3588841 100644 --- a/dotfiles/tmux.conf +++ b/dotfiles/tmux.conf @@ -31,6 +31,9 @@ setw -g mode-keys vi set -g default-terminal "xterm-256color" set -g terminal-overrides 'xteram*:colors=256' +# set windows so they dont resize to the smallest +setw -g aggressive-resize on + ###################### ### DESIGN CHANGES ### ###################### diff --git a/dotfiles/tmuxinator/php.yml b/dotfiles/tmuxinator/php.yml new file mode 100644 index 0000000..1813114 --- /dev/null +++ b/dotfiles/tmuxinator/php.yml @@ -0,0 +1,38 @@ +# ~/.tmuxinator/php.yml + +name: php +root: <%= @args[0] %> + +# Optional tmux socket +# socket_name: foo + +# Runs before everything. Use it to start daemons etc. +# pre: sudo /etc/rc.d/mysqld start + +# Runs in each window and pane before window/pane specific commands. Useful for setting up interpreter versions. +# pre_window: rbenv shell 2.0.0-p247 + +# Pass command line options to tmux. Useful for specifying a different tmux.conf. +# tmux_options: -f ~/.tmux.mac.conf + +# Change the command to call tmux. This can be used by derivatives/wrappers like byobu. +# tmux_command: byobu + +# Specifies (by name or index) which window will be selected on project startup. If not set, the first window is used. +# startup_window: logs + +# Controls whether the tmux session should be attached to automatically. Defaults to true. +# attach: false + +# Runs after everything. Use it to attach to tmux with custom options etc. +# post: tmux -CC attach -t php + +windows: + - editor: + layout: 2178,136x55,0,0[136x45,0,0,0,136x9,0,46,4] + panes: + - vim + - + - git: + - browser: google-chrome http://localhost + - Tasks: diff --git a/install/install_unix.sh b/install/install_unix.sh index c550b6e..031f9a4 100755 --- a/install/install_unix.sh +++ b/install/install_unix.sh @@ -11,6 +11,9 @@ ln -sf ~/.dotfiles/dotfiles/Xresources ~/.Xresources rm -rf ~/.tmuxinator ln -sf ~/.dotfiles/dotfiles/tmuxinator ~/.tmuxinator +# Link bin files +ln -sf ~/.dotfiles/dotfiles/bin/* /usr/local/bin + # Link to vim plugin autoloader mkdir -p ~/.vim/autoload ln -sf ~/.dotfiles/dotfiles/vim/autoload/pathogen.vim ~/.vim/autoload/pathogen.vim