Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Francisco J
committed
Apr 25, 2012
1 parent
6bb0c67
commit b06c589
Showing
9 changed files
with
129 additions
and
31 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,3 @@ | ||
[[ -s "$HOME/.rvm/scripts/rvm" ]] && . "$HOME/.rvm/scripts/rvm" # This loads RVM into a shell session. | ||
|
||
PATH=$PATH:$HOME/.rvm/bin # Add RVM to PATH for scripting |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
set -g default-terminal screen-256color | ||
bind R source-file ~/.tmux.conf \; display-message " Config reloaded..." | ||
|
||
set -g mode-keys vi | ||
unbind [ | ||
bind Escape copy-mode | ||
unbind p | ||
bind p paste-buffer | ||
bind-key -t vi-copy 'v' begin-selection | ||
bind-key -t vi-copy 'y' copy-selection | ||
|
||
# Status colors | ||
set -g status-bg black | ||
set -g status-fg white | ||
set -g status-left '#[fg=green]#H' | ||
set-window-option -g window-status-current-bg red | ||
|
||
# Right status | ||
set -g status-right '#[fg=yelow]#(uptime | cut -d ":" -f4-)' | ||
|
||
# Activity monitor | ||
setw -g monitor-activity on | ||
set -g visual-activity on | ||
# Don't rename the windows | ||
setw -g automatic-rename off | ||
|
||
# Set movement keys as in Vim | ||
unbind h | ||
bind h select-pane -L | ||
unbind j | ||
bind j select-pane -D | ||
unbind k | ||
bind k select-pane -U | ||
unbind l | ||
bind l select-pane -R | ||
|
||
# Go to last selected window | ||
bind-key C-a last-window |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,29 +1,29 @@ | ||
function c(){ | ||
cd /projects/$1; | ||
cd /projects/$1; | ||
} | ||
|
||
function v(){ | ||
cd /projects/$1; | ||
cd /projects/$1; | ||
mvim; | ||
} | ||
|
||
function h(){ | ||
cd ~/$1; | ||
cd ~/$1; | ||
} | ||
|
||
|
||
# Completion functions | ||
|
||
function _rake_tasks_completion(){ | ||
if [ -f Rakefile ]; then | ||
recent=`last_modified .rake_tasks~ Rakefile **/*.rake` | ||
if [[ $recent != '.rake_tasks~' ]]; then | ||
rake --silent --tasks | cut -d " " -f 2 > .rake_tasks~ | ||
fi | ||
compadd `cat .rake_tasks~` | ||
fi | ||
if [ -f Rakefile ]; then | ||
recent=`last_modified .rake_tasks~ Rakefile **/*.rake` | ||
if [[ $recent != '.rake_tasks~' ]]; then | ||
rake --silent --tasks | cut -d " " -f 2 > .rake_tasks~ | ||
fi | ||
compadd `cat .rake_tasks~` | ||
fi | ||
} | ||
|
||
function last_modified(){ | ||
ls -t $* 2> /dev/null | head -n 1 | ||
ls -t $* 2> /dev/null | head -n 1 | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
# Use this file to easily define all of your cron jobs. | ||
# | ||
# It's helpful, but not entirely necessary to understand cron before proceeding. | ||
# http://en.wikipedia.org/wiki/Cron | ||
|
||
# Example: | ||
# | ||
# set :output, "/path/to/my/cron_log.log" | ||
# | ||
# every 2.hours do | ||
# command "/usr/bin/some_great_command" | ||
# runner "MyModel.some_method" | ||
# rake "some:great:rake:task" | ||
# end | ||
# | ||
# every 4.days do | ||
# runner "AnotherModel.prune_old_records" | ||
# end | ||
|
||
# Learn more: http://github.com/javan/whenever | ||
|
||
every 1.day, at: '15:00' do | ||
command "logrotate --state=/tmp/logrotate.state /projects/dot-files/others/logrotate.conf" | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
/projects/*/log/*.log { | ||
daily | ||
missingok | ||
rotate 2 | ||
copytruncate | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,9 @@ | ||
#!/usr/bin/ruby | ||
|
||
require 'rubygems' | ||
require 'pry' | ||
|
||
# Use pry for the console if it exists | ||
Pry.start | ||
|
||
exit | ||
# require 'rubygems' | ||
# require 'pry' | ||
# | ||
# # Use pry for the console if it exists | ||
# Pry.start | ||
# | ||
# exit |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters