Nice to hear you love my dotfiles :)
First: I can't get my custom aliases / functions to work. I write them in the default Mathiass dotfiles folder, in .aliases / .functions . I reboot .bash_profile after adding and maintaining code.
What have you tried? Please describe in detail what exactly you did: which files you edited, which aliases / functions you added. Are you sure you are editing ~/.aliases and ~/.functions and not the files in the repository?
Secondly: how can I keep updating updates as long as I have custom alias and function settings in .aliases / .functions by default for the Mathiass repository. ( /Users/TheSpiritMolecule/dotfiles )
The idea is that you are not using my dotfiles directly, but rather creating your own fork of my repository. This way, you can always combine any changes that I made, and what you like, return to your fork through the magic of Git.
If for some reason you really don't want to create a fork, you can add custom aliases and functions by creating a ~/.extra file. This file will never be part of the repository, so it will not cause merge conflicts, but my dotfiles will be its source if such a file exists with other files. You can use this to add multiple user commands without having to fork this entire repository or add commands that you do not want to comment on in the public repository.
My ~/.extra looks something like this:
# Git credentials # Not in the repository, to prevent people from accidentally committing under my name GIT_AUTHOR_NAME="Mathias Bynens" GIT_COMMITTER_NAME="$GIT_AUTHOR_NAME" git config --global user.name "$GIT_AUTHOR_NAME" GIT_AUTHOR_EMAIL=" mathias@mailinator.com " GIT_COMMITTER_EMAIL="$GIT_AUTHOR_EMAIL" git config --global user.email "$GIT_AUTHOR_EMAIL"
You can also use ~/.extra to override settings, functions, and aliases from my dotfiles repository. It is probably best to use this repository .
source share