9/26/2016 - 11:41 PM

Terminal - Aliase und Einstellungen

Terminal - Aliase und Einstellungen

[[ -s "$HOME/.rvm/scripts/rvm" ]] && source "$HOME/.rvm/scripts/rvm" # Load RVM into a shell session *as a function*

[[ -s "$HOME/.rvm/scripts/rvm" ]] && source "$HOME/.rvm/scripts/rvm"  # This loads RVM into a shell session.

export CLICOLOR=1
export LSCOLORS=GxFxCxDxBxegedabagaced

# Some more alias to avoid making mistakes:
alias rm='rm -i'
alias cp='cp -i'
alias mv='mv -i'
alias cl='clear'
alias md='mkdir -p'
alias mc='mc -c'

# Verzeichnisnavigation
alias ..='cd ..'
alias ...='cd ../..'
alias ....='cd ../../..'
alias .....='cd ../../../..'

alias l='ls -alF'
alias ls='ls'
alias ll='ls -al'
alias la='ls -A'
alias dir='ls -alh'
alias slt='open -a "Sublime Text"'
alias find='open -a "Finder"'
alias start-ie7='VBoxManage startvm "IE7 - Vista"'
alias start-ie8-win7='VBoxManage startvm "IE8 - Win7"'
alias start-ie8-xp='VBoxManage startvm "IE8 - WinXP"'
alias start-win='VBoxManage startvm "Windows 7"'

# See
alias sudo='sudo '
# This helps me edit files that my user isn't the owner of
alias edit='SUDO_EDITOR="open -FWne" sudo -e'
# The alias that takes me here - to editing these very aliases
alias edit_profile='open -e ~/.profile'
# I do a lot of web development, so I need to edit these non-owned files fairly often
alias edit_hosts='edit /etc/hosts'
alias edit_httpd='edit /etc/apache2/httpd.conf'
alias edit_php='edit /etc/php.ini'
alias edit_vhosts='edit /etc/apache2/extra/httpd-vhosts.conf'
# Some of my goto commands, including one to open the php extension folder for when I need to install custom extensions
alias goto_mw='goto_web; cd mindworks'
alias goto_web='cd ~/Sites'
alias goto_phpext='sudo open /usr/lib/php/extensions/no-debug-non-zts-20100525'
# This alias recursively destroys all .DS_Store files in the folder I am currently in
alias killDS='find . -name *.DS_Store -type f -delete'
# An alias to start my custom MySQL installation instead of the default one
alias mysql='/usr/local/mysql-5.5.25-osx10.6-x86_64/bin/mysql -u root'
# This alias reloads this file
alias reload_profile='. ~/.profile'
# Mac get stuck very often and are extremely slow and unstable on shutdowns. This forces a shutdown.
alias poweroff='sudo /sbin/shutdown -h now'
# Setting for the new UTF-8 terminal support in Lion / Mountain Lion
export LC_CTYPE=en_US.UTF-8
export LC_ALL=en_US.UTF-8
# Adds all these paths to the PATH variable. The colon (:) is the path separator.
# When you need to "add something to path" you're supposed to add the path to its executable file to this list of paths, separated by a colon.
export PATH="/usr/local/bin:/usr/local/sbin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/X11/bin"

# export PATH="/usr/local/bin:$PATH"
export PATH="/usr/local/bin:/usr/local/sbin:~/bin:$PATH"

export PATH="/Users/leo/Library/Application Support/GoodSync":$PATH