Last active
August 29, 2015 14:04
-
-
Save softstar1990/3027f41dae3192178596 to your computer and use it in GitHub Desktop.
My bash_profile and bashrc
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
echo "" | |
echo -n "Welcome to Unix on Mac OS X, "; whoami | |
echo "" | |
echo -n "Today is "; date | |
echo "" | |
cal | |
if [ -f ~/.bashrc ]; then | |
source ~/.bashrc | |
fi | |
# Setting PATH for Python 2.7 | |
# The orginal version is saved in .bash_profile.pysave | |
PATH="/Library/Frameworks/Python.framework/Versions/2.7/bin:${PATH}" | |
export PATH | |
# Setting PATH for Python 3.4 | |
# The orginal version is saved in .bash_profile.pysave | |
PATH="/Library/Frameworks/Python.framework/Versions/3.4/bin:${PATH}" | |
export PATH |
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
# this is used to setting for bash | |
PATH="${PATH}:/usr/local/mysql/bin:/usr/local/smlnj/bin:/usr/local/octave/3.8.0/bin" | |
PATH="${PATH}:/usr/local/hadoop-2.4.1/bin:/usr/local/mongodb-osx-x86_64-2.6.3/bin" | |
PATH="${PATH}:/Applications/XAMPP/xamppfiles" | |
export PATH | |
echo -n "Uptime: "; uptime | |
echo "" | |
PS1='\$\u:\W -> ' | |
export PS1 | |
MYNAME='Jiaqi Zhu' | |
export MYNAME | |
export GREP_COLOR="31;46" | |
alias dir='ls -aG' | |
alias home='cd ~' | |
alias up='cd ..' | |
alias h='history' | |
alias cheat='less ~/.cheatsheet' | |
# can also redefine a command to add options | |
alias mv='mv -i' | |
alias cp='cp -i' | |
#alias rm='rm -i' | |
alias df='df -h' | |
alias du='du -h' | |
alias ls='ls -aG' | |
alias mkdir='mkdir -p' | |
alias grep='grep --color -En' | |
alias tree='tree -C' | |
alias mysqlstart='sudo /usr/local/mysql/support-files/mysql.server start' | |
alias mysqlstop='sudo /usr/local/mysql/support-files/mysql.server stop' | |
alias phprun='php55 -S localhost:8080' | |
alias xampp='sudo xampp' | |
# can be used to fix common typos you make | |
alias cls='clear' |
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
set completion-ignore-case on | |
set show-all-if-ambiguous on | |
TAB: menu-complete | |
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
include /usr/local/share/nano/c.nanorc | |
include /usr/local/share/nano/css.nanorc | |
include /usr/local/share/nano/fortran.nanorc | |
include /usr/local/share/nano/html.nanorc | |
include /usr/local/share/nano/java.nanorc | |
include /usr/local/share/nano/makefile.nanorc | |
include /usr/local/share/nano/man.nanorc | |
include /usr/local/share/nano/nanorc.nanorc | |
include /usr/local/share/nano/objc.nanorc | |
include /usr/local/share/nano/perl.nanorc | |
include /usr/local/share/nano/php.nanorc | |
include /usr/local/share/nano/python.nanorc | |
include /usr/local/share/nano/ruby.nanorc | |
include /usr/local/share/nano/sh.nanorc | |
include /usr/local/share/nano/tex.nanorc | |
include /usr/local/share/nano/xml.nanorc |
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
Show hidden characters
{ | |
"auto_complete_commit_on_tab": true, | |
"color_scheme": "Packages/Color Scheme - Default/Monokai Bright.tmTheme", | |
"font_size": 13, | |
"ignored_packages": | |
[ | |
"Vintage" | |
], | |
"theme": "Soda Dark 3.sublime-theme", | |
"word_wrap": "true" | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment