dotfiles / bash_profile

#!/usr/bin/env bash

shopt -s expand_aliases

# This file contains aliases and functions that duplicate some fish
# functionality, because Vim will use bash as its external command shell.

AG_BIN="`which ag`"
function ag() {
    if test -f '.agignore' && grep -q 'pragma: skipvcs' '.agignore'; then
        $AG_BIN --search-files -U "$@"
        $AG_BIN --search-files "$@"

export PATH=~/bin:~/lib/dotfiles/bin:/usr/local/share/python:/usr/local/bin/:$PATH

alias h='hg'
alias g='git'
alias pbc='pbcopy'
alias pbp='pbpaste'
alias pbpb='pbp | pb'
alias vu='vagrant up'
alias vs='vagrant suspend'
alias o='open'
alias oo='open .'
alias t='~/lib/t/ --task-dir="~/Dropbox/tasks" --list=tasks.txt'

function psg() {
    ps auxww | grep --color=always $* | grep -v grep | collapse | cuts -f 2,11-
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.