Commit Graph
134 Commits
Author SHA1 Message Date
Mathias Bynens e4001cc8ba Add urlencode alias
Via http://twatlr.com/thread/166830178226540544.
2012-02-07 14:31:42 +01:00
Mathias Bynens 765854f91f .vimrc: Tabs, not spaces 2012-01-27 19:03:02 +01:00
Mathias Bynens e979df7a7d Merge pull request #40 from paulirish/mathias
.vimrc: Use feature detection for new settings that aren’t available in hipster vims
2012-01-27 09:58:33 -08:00
Paul Irish 86a8986225 nerfing .vimrc's setrelativenumber and undodir options in case of older vim version 2012-01-27 09:44:46 -08:00
Mathias Bynens 4f575d2313 .aliases: Use sudo to empty local trash as well 2012-01-27 17:11:39 +01:00
Mathias Bynens 938aee5633 .bash_profile: Be sure to source .bash_prompt first, in case it sets the PATH and subsequent dotfiles rely on it 2012-01-26 21:17:16 +01:00
Mathias Bynens edee13b3d1 .bash_prompt: Add screenshot URL 2012-01-24 08:41:48 +01:00
Mathias Bynens bb49a553c8 README: Tweak the part about ~/.extra 2012-01-24 08:36:16 +01:00
Mathias Bynens c6d420b9aa README: Clarify that it doesn’t matter where the repository is cloned, and document ~/.extra 2012-01-23 22:52:15 +01:00
Mathias Bynens be0af1efaa .osx: Enable iTunes track notifications in the Dock
Screenshot: http://www.maclife.com/article/howtos/5_ways_customize_dock_terminal
2012-01-23 18:15:50 +01:00
Mathias Bynens 27c2285c59 server function: Serve everything as UTF-8
Even though this is not technically correct for binary files, it doesn’t actually break anything.
2012-01-09 14:34:38 +01:00
Mathias Bynens b2e13d33a4 .gitignore: Add more OS-specific hidden files 2012-01-05 15:12:30 +01:00
Mathias Bynens c0fcbfd4b9 Merge pull request #37 from kitcambridge/patch-1
.osx: Restart the `SystemUIServer` and suppress `kill` output
2012-01-05 00:18:22 -08:00
Kit Cambridge 49a471e28d .osx: Restart the SystemUIServer and suppress kill output. 2012-01-04 22:24:37 -07:00
Mathias Bynens 307c4257f2 Better json function
Ref. 9b0af44766
2012-01-02 22:50:59 +01:00
Mathias Bynens f62dfea697 README: List files while untarring 2012-01-02 16:35:05 +01:00
Mathias Bynens fdd4cd23ac Include .vim directory and subdirectories 2012-01-02 16:26:02 +01:00
Mathias Bynens ec4b44ef05 Serve unknown file types as UTF-8, as suggested by @janmoesen 2012-01-02 15:25:03 +01:00
Mathias Bynens 1a71776fef Use tar -z explicitly
Ref. #35.
2012-01-02 15:10:43 +01:00
Mathias Bynens 8c0c9aaaf6 README: Add Git-less installation instructions
Closes #35.
2012-01-02 12:13:51 +01:00
Mathias Bynens c1c05cb460 server function: Set the default Content-Type to text/plain instead of application/octet-stream
Hat tip to @cowboy: https://github.com/cowboy/dotfiles/blob/2874a86d207883a18e5e4c01219f9adb42d82c09/bin/serve#L26-43
2011-12-31 15:41:21 +01:00
Mathias Bynens 9850a48f18 README: Document the -f/--force option for bootstrap.sh 2011-12-31 11:52:54 +01:00
Mathias Bynens 42d5c26ae2 server: Use parameter expansion instead of a fake ternary 2011-12-31 11:49:56 +01:00
Mathias Bynens 0abbaf7465 Remove old server alias
Ref. 958517dcf4
2011-12-31 11:44:01 +01:00
Mathias Bynens 958517dcf4 Replace the server alias with a function that optionally takes an argument specifying the port number
Inspired by @padolsey’s https://gist.github.com/1525217#gistcomment-71652.
2011-12-31 11:42:42 +01:00
Mathias Bynens 147eff2778 Allow running bootstrap.sh with a --force or -f option
This avoids the confirmation prompt.
2011-12-29 11:31:11 +01:00
Mathias Bynens 46b82f742b Create .vim/{backups,swaps,undo} directories if they don’t exist 2011-12-29 11:15:37 +01:00
Mathias Bynens b3241b2a77 Make emptytrash empty the trash for mounted external volumes too
The downside is that this requires `sudo`. Closes #32.
2011-12-29 08:56:11 +01:00
Mathias Bynens 9b0af44766 Allow piping to the json function 2011-12-28 20:09:49 +01:00
Mathias Bynens 6b75bfc425 Use tabs instead of double-space indents 2011-12-28 13:19:35 +01:00
Mathias Bynens fad95362fb Add unidecode function
Example:

    $ unidecode "\x{1D306}"
    𝌆
2011-12-28 13:08:44 +01:00
Mathias Bynens e3c4b0e821 Add escape function which escapes UTF-8 characters into their 3-byte format
Example:

    $ escape "♥♡♥"
    \xE2\x99\xA5\xE2\x99\xA1\xE2\x99\xA5
    $ echo -e "\xE2\x99\xA5\xE2\x99\xA1\xE2\x99\xA5"
    ♥♡♥
2011-12-27 16:39:21 +01:00
Mathias Bynens eab8b0bea2 Move disabled QuickLook fix to the bottom 2011-12-22 11:33:45 +01:00
Mathias Bynens a2ef34f38b .vimrc: Centralize backups, swapfiles and undo history 2011-12-22 11:21:49 +01:00
Mathias Bynens 779de13da7 Add a link to cowboy/dotfiles 2011-12-21 20:26:58 +01:00
Mathias Bynens d7c2088a8f Add some more commands to $HISTIGNORE. 2011-11-18 07:55:41 +01:00
Mathias Bynens efd4c412d7 Merge pull request #29 from danawoodman/patch-1
Remove duplicate `set mark-symlinked-directories on` settings.
2011-11-17 20:44:45 -08:00
Dana Woodman c1614656c1 Removing duplicate set mark-symlinked-directories on settings. 2011-11-17 13:42:29 -08:00
Mathias Bynens 19b3bd4181 .vimrc: add set wildmenu for better command-line completion. Thanks, @alrra! 2011-11-16 14:41:31 +01:00
Mathias Bynens 2f93c73fb7 Make cleanup list the files it deletes. Kind of like how rm -v works. 2011-10-23 18:09:01 +03:00
Mathias Bynens b4d42230d1 Add cleanup alias, which recursively deletes .DS_Store files. Useful for cleaning up external HDDs after copying over some folders. 2011-10-22 23:15:34 +03:00
Mathias Bynens 81da8db247 Clarify Dropbox icon comment. 2011-10-22 20:49:48 +03:00
Mathias Bynens 59c2863084 Remove the green checkmark icons in Dropbox. 2011-10-22 13:46:00 +03:00
Mathias Bynens ba8d75189c Use double quotes more consistently. 2011-10-22 13:01:35 +03:00
Mathias Bynens 5d7bc000a5 Prefer US English and use UTF-8. 2011-10-22 13:01:08 +03:00
Mathias Bynens 73269b457f Steal some nifty aliases from @janmoesen/tilde. 2011-10-22 12:58:46 +03:00
Mathias Bynens cb8bc6e5b1 Steal some .inputrc goodies from @janmoesen/tilde. 2011-10-22 12:49:21 +03:00
Mathias Bynens f8e2a7d135 Use hd alias for canonical hex dump. Thanks, @janmoesen! 2011-10-22 12:31:02 +03:00
Mathias Bynens 3d791926a6 Don’t source .bash_profile when PS1 is not set (for non-interactive shells).
Stolen from @janmoesen’s https://github.com/janmoesen/tilde/blob/master/.bashrc:

# This might seem backwards when you look at the "Bash startup files" reference
# <http://www.gnu.org/software/bash/manual/bashref.html#Bash-Startup-Files> or
# the "INVOCATION" section in the man page. However, my workflow typically is:
#
# * Open a terminal with four shells in tabs
# * Edit code in Vim, and shell out using ":sh"
#
# The initial four shells are login shells, so they source ~/.bash_profile.
# The shells spawned by Vim are not login shells, but they /are/ interactive.
# They look for .bashrc, but not .bash_profile. Because they are interactive,
# PS1 is set, so I know it is OK to run all the shell initialisation code.
#
# If I were to put the contents of ~/.bash_profile in ~/.bashrc and make the
# former source the latter, I would have to wrap the entire contents of the
# latter in a huge "if [ -n "$PS1" ]; then ... fi" block. That does not really
# help readability, does it?
#
# The difference between a login shell and an interactive non-login shell is
# moot for me, so I consider all interactive shells to be equal and wanting
# the same treatment.
#
# If you're wondering what a non-interactive shell might be, i.e. when PS1
# might not be set, try this:
#
#     ssh localhost 'echo "PS1: >$PS1<"'
#
2011-10-22 12:28:24 +03:00
Mathias Bynens fc439ad594 Looks like IncludeDebugMenu was replaced by IncludeInternalDebugMenu recently. 2011-10-19 20:31:01 +03:00