Created
May 13, 2010 12:47
-
-
Save kunday/399789 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| if [[ -s /Users/kunday/.rvm/scripts/rvm ]] ; then source /Users/kunday/.rvm/scripts/rvm ; fi | |
| export PATH=/opt/local/lib/postgresql84/bin:/Users/kunday/.cabal/bin:$PATH | |
| ## | |
| # Your previous /Users/kunday/.profile file was backed up as /Users/kunday/.profile.macports-saved_2010-03-18_at_14:18:28 | |
| ## | |
| # MacPorts Installer addition on 2010-03-18_at_14:18:28: adding an appropriate PATH variable for use with MacPorts. | |
| export PATH=/usr/local/mysql/bin:/opt/local/bin:/opt/local/sbin:$PATH | |
| # Finished adapting your PATH environment variable for use with MacPorts. | |
| # MacPorts Installer addition on 2010-03-18_at_14:18:28: adding an appropriate MANPATH variable for use with MacPorts. | |
| export MANPATH=/opt/local/share/man:$MANPATH | |
| # Finished adapting your MANPATH environment variable for use with MacPorts. | |
| alias e=emacs | |
| #export LANG=ru_US.UTF-8 | |
| set meta-flag on | |
| set input-meta on | |
| set output-meta on | |
| set convert-meta off | |
| #export PS1="\[\e[01;32m\]\u@\h \[\e[01;34m\]\W \\[\e[01;34m\] > \[\e[00m\] " | |
| alias ls="ls -G" | |
| alias l="ls -G" | |
| alias ll="ls -g -a -l" | |
| alias ack="ack -u" | |
| export LSCOLORS=dxfxcxdxbxegedabagacad | |
| alias updatedb="/usr/libexec/locate.updatedb" | |
| alias a="aquamacs" | |
| alias yi="yi --as=emacs" | |
| #autojump | |
| #This shell snippet sets the prompt command and the necessary aliases | |
| #Copyright Joel Schaerer 2008, 2009 | |
| #This file is part of autojump | |
| #autojump is free software: you can redistribute it and/or modify | |
| #it under the terms of the GNU General Public License as published by | |
| #the Free Software Foundation, either version 3 of the License, or | |
| #(at your option) any later version. | |
| # | |
| #autojump is distributed in the hope that it will be useful, | |
| #but WITHOUT ANY WARRANTY; without even the implied warranty of | |
| #MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
| #GNU General Public License for more details. | |
| # | |
| #You should have received a copy of the GNU General Public License | |
| #along with autojump. If not, see <http://www.gnu.org/licenses/>. | |
| _autojump() | |
| { | |
| local cur | |
| COMPREPLY=() | |
| unset COMP_WORDS[0] #remove "j" from the array | |
| cur=${COMP_WORDS[*]} | |
| IFS=$'\n' read -d '' -a COMPREPLY < <(autojump --bash --completion "$cur") | |
| return 0 | |
| } | |
| complete -F _autojump j | |
| AUTOJUMP='{ (autojump -a "$(pwd -P)"&)>/dev/null 2>>${HOME}/.autojump_errors;} 2>/dev/null' | |
| if [[ ! $PROMPT_COMMAND =~ autojump ]]; then | |
| export PROMPT_COMMAND="${PROMPT_COMMAND:-:} && $AUTOJUMP" | |
| fi | |
| alias jumpstat="autojump --stat" | |
| function j { new_path="$(autojump $@)";if [ -n "$new_path" ]; then echo -e "\\033[31m${new_path}\\033[0m"; cd "$new_path";fi } | |
| export PS_COLOR="0;32" | |
| parse_git_branch() { | |
| git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/(\1)/' | |
| } | |
| parse_git_dirty() { | |
| [[ $(git status 2> /dev/null | tail -n1) != "nothing to commit (working directory clean)" ]] && echo "‚ö°" | |
| } | |
| export PS1="\n\[\e[${PS_COLOR}m\]\t \u@\H:\w \n\[\e[0;39m\]\$(parse_git_branch)\$(parse_git_dirty)$ " | |
| # export DYLD_LIBRARY_PATH=/opt/local/lib |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment