mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-01-02 02:19:06 +01:00
92 lines
1.9 KiB
Bash
92 lines
1.9 KiB
Bash
# Push and pop directories on directory stack
|
|
alias pu='pushd'
|
|
alias po='popd'
|
|
|
|
# Basic directory operations
|
|
alias ...='cd ../..'
|
|
alias -- -='cd -'
|
|
|
|
# Super user
|
|
alias _='sudo'
|
|
|
|
#alias g='grep -in'
|
|
|
|
# Show history
|
|
alias history='fc -l 1'
|
|
|
|
# List direcory contents
|
|
alias lsa='ls -lah'
|
|
alias l='ls -la'
|
|
#alias ll='ls -l'
|
|
alias sl=ls # often screw this up
|
|
|
|
alias afind='ack-grep -il'
|
|
|
|
# DD: mine, or added from https://github.com/thoughtbot/dotfiles
|
|
|
|
# Folder aliases
|
|
alias ls='ls -F'
|
|
alias la='la -A'
|
|
alias ll='ls -lA'
|
|
alias ..='cd ..'
|
|
alias ...='../..'
|
|
alias path='echo -e ${PATH//:/\\\n}'
|
|
|
|
# Ruby aliases
|
|
alias rss='ruby script/server'
|
|
alias rssd='ruby script/server -u'
|
|
alias rsc='ruby script/console'
|
|
|
|
# Gem/Rails aliases
|
|
alias geml='gem list --local | more'
|
|
alias geme='cd `rvm gemdir`/gems; ls'
|
|
alias cap='bundle exec cap'
|
|
alias rake='bundle exec rake'
|
|
#alias migrate="rake db:migrate db:test:prepare"
|
|
#alias remigrate="rake db:migrate && rake db:migrate:redo && rake db:schema:dump db:test:prepare"
|
|
#alias remongrate="rake mongoid:migrate && rake mongoid:migrate:redo"
|
|
|
|
# Git aliases
|
|
alias g="git"
|
|
alias glog='git log --color'
|
|
alias gd='git diff --color'
|
|
alias gs='git status'
|
|
alias gcom='git commit'
|
|
alias gpu='git pull'
|
|
alias gps='git push'
|
|
alias gcm='git checkout master'
|
|
alias gcp='git checkout production'
|
|
alias gch='git checkout'
|
|
alias gmm='git merge master'
|
|
#alias gci="git pull --rebase && rake && git push"
|
|
alias tlf="tail -f"
|
|
|
|
alias ln='ln -v'
|
|
alias mkdir='mkdir -p'
|
|
|
|
alias -g G='| grep'
|
|
alias -g M='| less'
|
|
alias -g L='| wc -l'
|
|
alias -g ONE="| awk '{ print \$1}'"
|
|
|
|
# git
|
|
alias gci="git pull --rebase && rake && git push"
|
|
|
|
# Bundler
|
|
alias b="bundle"
|
|
alias be="bundle exec"
|
|
alias bake="bundle exec rake"
|
|
|
|
# Tests and Specs
|
|
alias t="ruby -I test"
|
|
alias s="bundle exec rspec"
|
|
alias cuc="bundle exec cucumber"
|
|
|
|
# Rubygems
|
|
alias gi="gem install"
|
|
alias giv="gem install -v"
|
|
|
|
# Network
|
|
alias whats-my-ip="curl -s checkip.dyndns.org | grep -Eo '[0-9\.]+'"
|
|
|
|
|