mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-03-27 03:14:56 +01:00
48 lines
1.1 KiB
Bash
48 lines
1.1 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 please='sudo'
|
|
|
|
#alias g='grep -in'
|
|
|
|
# Show history
|
|
if [ "$HIST_STAMPS" = "mm/dd/yyyy" ]
|
|
then
|
|
alias history='fc -fl 1'
|
|
elif [ "$HIST_STAMPS" = "dd.mm.yyyy" ]
|
|
then
|
|
alias history='fc -El 1'
|
|
elif [ "$HIST_STAMPS" = "yyyy-mm-dd" ]
|
|
then
|
|
alias history='fc -il 1'
|
|
else
|
|
alias history='fc -l 1'
|
|
fi
|
|
# List direcory contents
|
|
alias lsa='ls -lah'
|
|
alias l='ls -lah'
|
|
alias ll='ls -lh'
|
|
alias la='ls -lAh'
|
|
alias sl=ls # often screw this up
|
|
|
|
alias afind='ack-grep -il'
|
|
|
|
# iOS Simulator
|
|
alias ios='open /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/Applications/iPhone\ Simulator.app'
|
|
|
|
# Code Directory
|
|
alias code='~/Dropbox/Code'
|
|
alias dw='~/Dropbox'
|
|
alias dp='~/Dropbox\ \(Personal\)'
|
|
|
|
# Docker Machine
|
|
alias dminit="docker-machine create --driver virtualbox dev"
|
|
alias dmup="docker-machine start dev && eval \"\$(docker-machine env dev)\""
|
|
alias dm="docker-machine"
|