-
Notifications
You must be signed in to change notification settings - Fork 0
Developer Tricks
Note: this is a page of useful tricks for developers.
https://github.com/git/git/tree/master/contrib/completion
-
git-prompt.sh. This changes the prompt on the command line to show the current branch. Install by copying it to
/, follow install instructions. For a cleaner prompt, replace the PS1 suggested with:/stan" is the current directory, "(master)" indicates the current branch is the master branch.PS1='\w$(__git_ps1 " (%s)")> 'The prompt will look like:~/stan (master)>where " -
git-completition.*sh. Install this for auto-completion from the command line. It auto-completes git commands and git branches. For example, type
git checkoutthen hit tab twice. It should show the available branches.
By default, aquamacs will has multiple kill buffers. This means that there is a copy and paste buffer by using command-c/x/v and there is a separate copy and paste buffer by using ctrl-w, alt-w, ctrl-y. This gets really confusing. Here's how to have a single kill buffer so copying from any Mac program will paste into emacs using ctrl-y or command-v.
- Open ~/.emacs (or wherever else you're storing your preferences)
- Add:
(setq x-select-enable-clipboard t)