some updates and add some bin scripts

This commit is contained in:
AdeAttwood 2016-08-15 20:00:11 +01:00
parent 724a3e08f6
commit 82af76436b
5 changed files with 59 additions and 0 deletions

View file

@ -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"

View file

@ -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

View file

@ -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 ###
######################

View file

@ -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:

View file

@ -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