mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2025-12-05 01:46:46 +01:00
Merge branch 'master' of https://github.com/robbyrussell/oh-my-zsh
This commit is contained in:
commit
1a6d11dbae
10 changed files with 137 additions and 7 deletions
|
|
@ -6,7 +6,7 @@ alias bu="bundle update"
|
|||
|
||||
# The following is based on https://github.com/gma/bundler-exec
|
||||
|
||||
bundled_commands=(annotate cap capify cucumber foreman guard middleman nanoc rackup rainbows rails rake rspec ruby shotgun spec spork thin thor unicorn unicorn_rails)
|
||||
bundled_commands=(annotate cap capify cucumber foreman guard middleman nanoc rackup rainbows rake rspec ruby shotgun spec spork thin thor unicorn unicorn_rails)
|
||||
|
||||
## Functions
|
||||
|
||||
|
|
|
|||
6
plugins/fasd/fasd.plugin.zsh
Normal file
6
plugins/fasd/fasd.plugin.zsh
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
if [ $commands[fasd] ]; then # check if fasd is installed
|
||||
eval "$(fasd --init auto)"
|
||||
alias v='f -e vim'
|
||||
alias o='a -e open'
|
||||
fi
|
||||
|
||||
|
|
@ -29,7 +29,7 @@ alias iminurbase='finger'
|
|||
alias btw='nice'
|
||||
alias obtw='nohup'
|
||||
|
||||
alias nomz='ps -aux'
|
||||
alias nomz='ps aux'
|
||||
alias nomnom='killall'
|
||||
|
||||
alias byes='exit'
|
||||
|
|
|
|||
|
|
@ -17,7 +17,7 @@ for rbenvdir in "${rbenvdirs[@]}" ; do
|
|||
FOUND_RBENV=1
|
||||
export RBENV_ROOT=$rbenvdir
|
||||
export PATH=${rbenvdir}/bin:$PATH
|
||||
eval "$(rbenv init -)"
|
||||
eval "$(rbenv init - zsh)"
|
||||
|
||||
alias rubies="rbenv versions"
|
||||
alias gemsets="rbenv gemset list"
|
||||
|
|
|
|||
42
plugins/rbfu/rbfu.plugin.zsh
Normal file
42
plugins/rbfu/rbfu.plugin.zsh
Normal file
|
|
@ -0,0 +1,42 @@
|
|||
# Enables rbfu with --auto option, if available.
|
||||
#
|
||||
# Also provides a command to list all installed/available
|
||||
# rubies. To ensure compatibility with themes, creates the
|
||||
# rvm_prompt_info function to return the $RBFU_RUBY_VERSION
|
||||
# version.
|
||||
|
||||
command -v rbfu &>/dev/null
|
||||
|
||||
if [[ $? -eq 0 ]]; then
|
||||
eval "$(rbfu --init --auto)"
|
||||
|
||||
# Internal: Print ruby version details, if it's currently
|
||||
# active etc.
|
||||
function _rbfu_rubies_print() {
|
||||
local rb rb_out
|
||||
rb=$(basename $1)
|
||||
rb_out="$rb"
|
||||
[[ -h $1 ]] && rb_out="$rb_out${fg[green]}@${reset_color}"
|
||||
[[ "x$rb" == "x$2" ]] && rb_out="${fg[red]}$rb_out ${fg[red]}*${reset_color}"
|
||||
echo $rb_out
|
||||
}
|
||||
|
||||
# Public: Provide a list with all available rubies, this basically depends
|
||||
# on `ls -1` and .rfbu/rubies. Highlights the currently active ruby version
|
||||
# and aliases.
|
||||
function rbfu-rubies() {
|
||||
local rbfu_dir active_rb
|
||||
rbfu_dir=$RBFU_RUBIES
|
||||
active_rb=$RBFU_RUBY_VERSION
|
||||
[[ -z "$rbfu_dir" ]] && rbfu_dir="${HOME}/.rbfu/rubies"
|
||||
[[ -z "$active_rb" ]] && active_rb="system"
|
||||
_rbfu_rubies_print "${rbfu_dir}/system" $active_rb
|
||||
for rb in $(ls -1 $rbfu_dir); do
|
||||
_rbfu_rubies_print "${rbfu_dir}/${rb}" $active_rb
|
||||
done
|
||||
}
|
||||
|
||||
# Public: Create rvm_prompt_info command for themes compatibility, unless
|
||||
# it has already been defined.
|
||||
[ ! -x rvm_prompt_info ] && function rvm_prompt_info() { echo "${RBFU_RUBY_VERSION:=system}" }
|
||||
fi
|
||||
8
plugins/sublime/sublime.plugin.zsh
Normal file → Executable file
8
plugins/sublime/sublime.plugin.zsh
Normal file → Executable file
|
|
@ -1,3 +1,9 @@
|
|||
# Sublime Text 2 Aliases
|
||||
alias st='/Applications/Sublime\ Text\ 2.app/Contents/SharedSupport/bin/subl'
|
||||
#unamestr = 'uname'
|
||||
|
||||
if [[ $('uname') == 'Linux' ]]; then
|
||||
alias st='/usr/bin/sublime_text&'
|
||||
elif [[ $('uname') == 'Darwin' ]]; then
|
||||
alias st='/Applications/Sublime\ Text\ 2.app/Contents/SharedSupport/bin/subl'
|
||||
fi
|
||||
alias stt='st .'
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
WRAPPER_FOUND=0
|
||||
for wrapsource in "/usr/local/bin/virtualenvwrapper.sh" "/etc/bash_completion.d/virtualenvwrapper" ; do
|
||||
for wrapsource in "/usr/bin/virtualenvwrapper.sh" "/usr/local/bin/virtualenvwrapper.sh" "/etc/bash_completion.d/virtualenvwrapper" ; do
|
||||
if [[ -e $wrapsource ]] ; then
|
||||
WRAPPER_FOUND=1
|
||||
source $wrapsource
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue