INSERT GRAPHIC HERE (include hyperlink in image)
Subtitle or Short Description Goes Here
# Your init script | |
# | |
# Atom will evaluate this file each time a new window is opened. It is run | |
# after packages are loaded/activated and after the previous editor state | |
# has been restored. | |
# | |
# An example hack to log to the console when each text editor is saved. | |
# | |
# atom.workspace.observeTextEditors (editor) -> | |
# editor.onDidSave -> |
Using Ag (The Silver Searcher) and want ignore some specific files with CtrlP? | |
Create a .agignore file and specify files and/or folders to ignore. |
set nocompatible " be iMproved | |
filetype off " required! | |
set rtp+=~/.vim/bundle/vundle/ | |
call vundle#rc() | |
Bundle 'gmarik/vundle' | |
Bundle 'bling/vim-airline' | |
Bundle 'tpope/vim-fugitive' | |
Bundle 'tpope/vim-commentary' |
select pg_terminate_backend(procpid) from pg_stat_activity where datname='db'; |
# Path to your oh-my-zsh configuration. | |
ZSH=$HOME/.oh-my-zsh | |
# Set name of the theme to load. | |
# Look in ~/.oh-my-zsh/themes/ | |
# Optionally, if you set this to "random", it'll load a random theme each | |
# time that oh-my-zsh is loaded. | |
# ZSH_THEME="robbyrussell" | |
# ZSH_THEME="rkj-repos" | |
ZSH_THEME="zanshin" |
# Shows little symbol '±' if you're currently at a git repo and '○' all other times | |
function prompt_char { | |
git branch >/dev/null 2>/dev/null && echo '±' && return | |
hg root >/dev/null 2>/dev/null && echo '☿' && return | |
echo '○' | |
} | |
PROMPT=' | |
%{$fg[blue]%}%n%{$reset_color%} on %{$fg[yellow]%}%m%{$reset_color%} in %{$fg[green]%}%~%b%{$reset_color%} $(hg_prompt_info)$(git_time_since_commit)$(check_git_prompt_info) | |
${vcs_info_msg_0_}$(prompt_char) ' |
# An informative prompt that gives you hg and git repository info, | |
# as well as return code, RVM/rubenv info, and standard hostname, path, user. | |
# by Avery Yen <[email protected]> | |
# | |
# Hosted at <https://github.com/haplesshero13/my-tools> | |
# | |
# Requires hg-prompt <http://stevelosh.com/projects/hg-prompt/> | |
# | |
# Stolen mostly from <http://stevelosh.com/blog/2010/02/my-extravagant-zsh-prompt/> | |
# and alanpeabody.zsh-theme from Oh-My-Zsh. |
set-option -g default-shell /bin/zsh |