Skip to content

Instantly share code, notes, and snippets.

@Zelnox
Zelnox / config.fish
Created September 25, 2014 23:13
.config/fish/config.fish
# Hi
#
# Tmuxinator
#[[ -s $HOME/.tmuxinator/scripts/tmuxinator ]] and source $HOME/.tmuxinator/scripts/tmuxinator
# Exports
set -x MYSQL_SOCKET /tmp/mysql.sock
#set -x PATH $PATH:/usr/local/share/python # to locate powerline binary
set -x EDITOR /usr/local/bin/vim
@Zelnox
Zelnox / .bashrc
Last active August 29, 2015 14:04
bashrc
#aliases
alias ls='ls -G' # for colours
alias gw='cd ~/Documents/work/'
alias gsb='cd ~/Documents/sandbox/'
# Homebrew
if [ -f /usr/local/etc/bash_completion ]; then
. /usr/local/etc/bash_completion
fi
execute pathogen#infect()
filetype plugin indent on
if &term =~ "xterm-256color"
set t_Co=256
colorscheme xoria256
endif
if has("gui_macvim")
set fuopt=maxvert,maxhorz " full screen takes entire screen
set guifont=FiraMono:h14
set-option -g default-shell "/bin/bash"
#set-option -g default-command "bash -l"
set-option -g default-command "reattach-to-user-namespace -l bash"
# Set the default terminal mode to 256color mode.
set -g default-terminal "screen-256color"
# Setting the prefix from `C-b` to `C-a`.
# By remapping the `CapsLock` key to `Ctrl`,
# you can make triggering commands more comfottable!
set -g prefix C-a
if &term =~ "xterm-256color"
set t_Co=256
colorscheme xoria256
endif
if has("gui_macvim")
set fuopt=maxvert,maxhorz " full screen takes entire screen
set guifont=Inconsolata:h14
"set guifont=MyFont\ for\ Powerline\ 14
end
syntax on
colorscheme xoria256
if &term =~ "xterm-256color"
set t_Co=256
colorscheme xoria256
endif
if has("gui_macvim")
set fuopt=maxvert,maxhorz " full screen takes entire screen
end
Somewhere in your layouts/application.html.erb
<%= content_for?(:content) ? yield(:content) : yield %>
server {
listen 3000 ;
server_name localhost ;
root /home/camilo/Documents/webapps ;
passenger_enabled on ;
passenger_base_uri /original ;
passenger_base_uri /second ;
}
The Bash shell prompt in your Terminal is very highly customizable and can display a wide variety of useful information. This is what my prompt looks like and how to create it.
[09:10:11] user@host ~/Desktop +
Explanation:
The following information is presented at the prompt:
[09:10:11] : the current time
user@host : the name of the logged in user and the host machine
/*
Jquery and Rails powered default application.js
Easy Ajax replacement for remote_functions and ajax_form based on class name
All actions will reply to the .js format
Unostrusive, will only works if Javascript enabled, if not, respond to an HTML as a normal link
respond_to do |format|
format.html
format.js {render :layout => false}
end
*/