Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Comparing changes

Choose two branches to see what's changed or to start a new pull request. If you need to, you can also compare across forks.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also compare across forks.
base fork: gaby-mg/dotfiles
base: fe5aff6b13
...
head fork: gaby-mg/dotfiles
compare: 90db57f1d5
Checking mergeability… Don't worry, you can still create the pull request.
  • 5 commits
  • 9 files changed
  • 0 commit comments
  • 1 contributor
View
12 .gitmodules
@@ -0,0 +1,12 @@
+[submodule "vim/vim/bundle/vim-pathogen"]
+ path = vim/vim/bundle/vim-pathogen
+ url = https://github.com/tpope/vim-pathogen.git
+[submodule "vim/vim/bundle/vim-colors-solarized"]
+ path = vim/vim/bundle/vim-colors-solarized
+ url = https://github.com/altercation/vim-colors-solarized.git
+[submodule "vim/vim/bundle/vim-nerdtree"]
+ path = vim/vim/bundle/vim-nerdtree
+ url = https://github.com/scrooloose/nerdtree.git
+[submodule "vim/vim/bundle/vim-blade"]
+ path = vim/vim/bundle/vim-blade
+ url = https://github.com/johnhamelink/blade.vim.git
View
32 bash/bash_aliases
@@ -0,0 +1,32 @@
+
+#############################################################################
+# Aliases for the copy (cp) command
+#############################################################################
+alias cp="cp -iv"
+
+#############################################################################
+# Aliases for the list (ls) command
+#############################################################################
+
+# ls: colorize the output
+alias ls="ls --color=auto"
+
+# ll: use a long listing format
+alias ll="ls -l"
+
+# la: do not ignore entries starting with .
+alias la="ls -a"
+
+#############################################################################
+# Aliases for the move (mv) command
+#############################################################################
+
+# mv: i (prompt before overwrite) - v (explain what is being done)
+alias mv="mv -iv"
+
+#############################################################################
+# Aliases for the remove (rm) command
+#############################################################################
+
+# rm: I() - v (explain what is being done)
+alias rm="rm -Iv"
View
97 bash/bash_profile
@@ -0,0 +1,97 @@
+# Alias definitions.
+# You may want to put all your additions into a separate file like
+# ~/.bash_aliases, instead of adding them here directly.
+# See /usr/share/doc/bash-doc/examples in the bash-doc package.
+
+if [ -f ~/.dotfiles/bash/bash_aliases ]; then
+ . ~/.dotfiles/bash/bash_aliases
+fi
+
+# RVM (Ruby Version Manager)
+[[ -s "$HOME/.rvm/scripts/rvm" ]] && source "$HOME/.rvm/scripts/rvm" # Load RVM into a shell session *as a function*
+
+#############################################################################
+# Node.js
+#############################################################################
+# Checks that the child directory is a subdirectory of the parent
+is_subdirectory() {
+ local child="$1"
+ local parent="$2"
+ if [[ "${child##${parent}}" != "$child" ]]; then
+ return 0
+ else
+ return 1
+ fi
+}
+
+# Activates a new environment
+activate_env() {
+ # Check if the directory we've cd'ed into is a node environment directory
+ # (i.e., it contains a node_modules folder) and that a node envrionment
+ # does not already exist before creating a new one.
+ if [ -d "node_modules" ] && [ -z "$_ENV_DIR" ]; then
+
+ # Save the old PATH variable so we can revert back to it when we leave
+ # the environment
+ export _OLD_PATH="$PATH"
+
+ # An environment is essentially nothing more than an environment
+ # variable (_ENV_DIR) pointing the parent directory of our node
+ # environment. Create the variable and point it to $PWD.
+ export _ENV_DIR="$PWD"
+
+ # Add the bin folder for all local NPM installs to the PATH
+ export PATH="$(npm bin):$PATH"
+
+ # If an activation script exists, execute it
+ if [ -e ".activate" ]; then
+ source .activate
+ fi
+ fi
+}
+
+# Deactivates the current envrionment
+deactivate_env() {
+ # Make sure that an envrionment does exist and that the new
+ # directory is not a subdirectory of the envrionment directory
+ if [ -n "$_ENV_DIR" ] && ! is_subdirectory "$PWD" "$_ENV_DIR"; then
+
+ # Run the deactivation script if it exists
+ if [[ -e "$_ENV_DIR/.deactivate" ]]; then
+ source "$_ENV_DIR/.deactivate"
+ fi
+
+ # Revert back to the original PATH
+ export PATH="$_OLD_PATH"
+
+ # Destroy the environment
+ unset _ENV_DIR
+ unset _OLD_PATH
+ fi
+}
+
+env_cd() {
+ builtin cd "$@" && deactivate_env && activate_env
+}
+
+alias cd="env_cd"
+
+# Node
+export NVM_HOME="$HOME/.nvm"
+if [[ -f "$NVM_HOME/nvm.sh" ]]; then
+ source "$NVM_HOME/nvm.sh"
+fi
+
+# NVM Tab completion
+if [[ -f "$NVM_HOME/bash_completion" ]]; then
+ source "$NVM_HOME/bash_completion"
+fi
+
+# NPM completion
+if npm -v >/dev/null 2>&1; then
+. <(npm completion)
+fi
+
+
+# MySQL
+PATH=${PATH}:/usr/local/mysql/bin
View
0  vim/gvimrc
No changes.
1  vim/vim/bundle/vim-blade
@@ -0,0 +1 @@
+Subproject commit 6ce7a5812f50a3b32cd93f6eeba557274d1d466b
1  vim/vim/bundle/vim-colors-solarized
@@ -0,0 +1 @@
+Subproject commit 528a59f26d12278698bb946f8fb82a63711eec21
1  vim/vim/bundle/vim-nerdtree
@@ -0,0 +1 @@
+Subproject commit 3a8310a60bd165841e768d2569c98d40066c35df
1  vim/vim/bundle/vim-pathogen
@@ -0,0 +1 @@
+Subproject commit e5f413f480e0fd4b7c5bce0ff69721a46ca48ab1
View
13 vim/vimrc
@@ -0,0 +1,13 @@
+source ~/.dotfiles/vim/vim/bundle/vim-pathogen/autoload/pathogen.vim
+call pathogen#infect()
+syntax on
+filetype plugin indent on
+set background=dark
+colorscheme solarized
+
+" Shortcut to rapidly toggle ':set list'
+" As seen in http://vimcasts.org/episodes/show-invisibles/
+nmap <leader>l :set list!<CR>
+
+" Use the same symbols as TextMate for tabstops and EOLs
+set listchars=tab:\ ,eol:¬

No commit comments for this range

Something went wrong with that request. Please try again.