Sha256: 1dee19f92bc1c4df16328d1dc50e30519846c607305452e487df361f5a69b58e

Contents?: true

Size: 994 Bytes

Versions: 2

Compression:

Stored size: 994 Bytes

Contents

###########
# Functions
###########
# Delete an entry from ~/.ssh/known_hosts
# Usage: sshdel <line_number>
function sshdel { perl -i -n -e "print unless (\$. == $1)" ~/.ssh/known_hosts; }

#########
# Aliases
#########

# Show disk usage in current directory
alias dm='du -sm * | sort -n'

# ls
alias ll='ls -alF'
alias la='ls -A'
alias l='ls -CF'

# Git aliases for bash
alias gst='git status'
alias gl='git pull'
alias gp='git push'
alias gd='git diff | mate'
alias gc='git commit -v'
alias gca='git commit -v -a'
alias gb='git branch'
alias gba='git branch -a'
alias rr='xargs ps -p < '
alias gcp='git cherry-pick'

# Time http request
alias tc='time curl -s -o /dev/null'

# Load rubygems
alias irb="irb -I '.' -rubygems"

alias ssm="ssh -l $USER"

# Load bash completion
. /etc/bash_completion

# Prompt
parse_git_branch() {
  git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/(\1)/'
}
PS1="\[\e]0;\u@\h: \w\a\]${debian_chroot:+($debian_chroot)}\u@\h:\w \$(parse_git_branch)\$ "

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
deprec-3.1.0.rc16 lib/deprec/templates/bash/bash_global
deprec-3.1.0.rc15 lib/deprec/templates/bash/bash_global