some updates and add some bin scripts
This commit is contained in:
parent
724a3e08f6
commit
82af76436b
5 changed files with 59 additions and 0 deletions
|
|
@ -119,6 +119,9 @@ if ! shopt -oq posix; then
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# map esc to caps lock
|
||||||
|
xmodmap -e 'clear Lock' -e 'keycode 0x42 = Escape'
|
||||||
|
|
||||||
|
|
||||||
export PHPBREW_SET_PROMPT=1
|
export PHPBREW_SET_PROMPT=1
|
||||||
source "$HOME/.phpbrew/bashrc"
|
source "$HOME/.phpbrew/bashrc"
|
||||||
|
|
|
||||||
12
dotfiles/bin/a2changedocumentroot
Executable file
12
dotfiles/bin/a2changedocumentroot
Executable 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
|
||||||
|
|
@ -31,6 +31,9 @@ setw -g mode-keys vi
|
||||||
set -g default-terminal "xterm-256color"
|
set -g default-terminal "xterm-256color"
|
||||||
set -g terminal-overrides 'xteram*:colors=256'
|
set -g terminal-overrides 'xteram*:colors=256'
|
||||||
|
|
||||||
|
# set windows so they dont resize to the smallest
|
||||||
|
setw -g aggressive-resize on
|
||||||
|
|
||||||
######################
|
######################
|
||||||
### DESIGN CHANGES ###
|
### DESIGN CHANGES ###
|
||||||
######################
|
######################
|
||||||
|
|
|
||||||
38
dotfiles/tmuxinator/php.yml
Normal file
38
dotfiles/tmuxinator/php.yml
Normal 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:
|
||||||
|
|
@ -11,6 +11,9 @@ ln -sf ~/.dotfiles/dotfiles/Xresources ~/.Xresources
|
||||||
rm -rf ~/.tmuxinator
|
rm -rf ~/.tmuxinator
|
||||||
ln -sf ~/.dotfiles/dotfiles/tmuxinator ~/.tmuxinator
|
ln -sf ~/.dotfiles/dotfiles/tmuxinator ~/.tmuxinator
|
||||||
|
|
||||||
|
# Link bin files
|
||||||
|
ln -sf ~/.dotfiles/dotfiles/bin/* /usr/local/bin
|
||||||
|
|
||||||
# Link to vim plugin autoloader
|
# Link to vim plugin autoloader
|
||||||
mkdir -p ~/.vim/autoload
|
mkdir -p ~/.vim/autoload
|
||||||
ln -sf ~/.dotfiles/dotfiles/vim/autoload/pathogen.vim ~/.vim/autoload/pathogen.vim
|
ln -sf ~/.dotfiles/dotfiles/vim/autoload/pathogen.vim ~/.vim/autoload/pathogen.vim
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue