Mitch Tishmack il y a 8 ans
Parent
révision
a7f2703697
3 fichiers modifiés avec 75 ajouts et 8 suppressions
  1. +4
    -4
      bin.org
  2. +27
    -0
      emacs.org
  3. +44
    -4
      git.org

+ 4
- 4
bin.org Voir le fichier

@@ -3,11 +3,11 @@
#+STARTUP: hidestars
#+STARTUP: odd
#+BABEL: :cache yes
#+PROPERTY: header-args :cache yes
#+PROPERTY: header-args :cache t
#+PROPERTY: header-args :padline no
#+PROPERTY: header-args :mkdirp yes
#+PROPERTY: header-args :mkdirp t
#+PROPERTY: header-args :comments no
#+PROPERTY: header-args :replace yes
#+PROPERTY: header-args :replace t
#+PROPERTY: header-args :tangle-mode (identity #o755)

~/bin files and other shenanigans
@@ -1006,7 +1006,7 @@ foreach my $input (@ARGV){

More for nix on macos, but just merges NixOS/nipkgs origin/master to the current branch in a tmux window and watches it.

#+BEGIN_SRC sh :padline no :tangle (tangle/file "bin/nix-update" (bound-and-true-p nix-p))
#+BEGIN_SRC sh :padline no :tangle (tangle/file "bin/nix-update" (bound-and-true-p nix-p)) :mkdirp t
#!/usr/bin/env sh
#-*-mode: Shell-script; coding: utf-8;-*-
# File: tmux-nix.sh


+ 27
- 0
emacs.org Voir le fichier

@@ -311,6 +311,33 @@ Typing out *yes* or *no* is stupid.
(fset 'yes-or-no-p 'y-or-n-p)
#+END_SRC

Disable the stupid prompt added in 23.2 that asks if you want to kill a buffer with a process attached. Yes, obviously, shut up and do it.

#+BEGIN_SRC emacs-lisp
(setq kill-buffer-query-functions
(remq 'process-kill-buffer-query-function
kill-buffer-query-functions))
#+END_SRC

TESTING tooltip mode

Puts all tooltips in the echo arear.

#+BEGIN_SRC emacs-lisp
(tooltip-mode -1)
(custom-set-variables
'(tooltip-use-echo-area t))
#+END_SRC

TESTING redisplay

Have emacs not redraw the display before processing input events.

#+BEGIN_SRC emacs-lisp
(custom-set-variables
'(redisplay-dont-pause t))
#+END_SRC

*** osx specific

**** no yes-or-no gui windows


+ 44
- 4
git.org Voir le fichier

@@ -13,6 +13,9 @@ General git configuration split out into sections mostly.

* ~/.gitconfig
** pager

All pager, all the time.

#+BEGIN_SRC conf :tangle (tangle/file ".gitconfig" (bound-and-true-p git-p))
[pager]
color = true
@@ -38,6 +41,9 @@ General git configuration split out into sections mostly.
new = green reverse
#+END_SRC
** alias

Aliases so I can be lay zee.

#+BEGIN_SRC conf :tangle (tangle/file ".gitconfig" (bound-and-true-p git-p))
[alias]
begin = !git init && git commit --allow-empty -m 'Initial empty commit'
@@ -103,42 +109,67 @@ General git configuration split out into sections mostly.
nopush = remote set-url --push origin no_push
#+END_SRC
** github

My username for github.

#+BEGIN_SRC conf :tangle (tangle/file ".gitconfig" (bound-and-true-p git-p))
[github]
user = mitchty
#+END_SRC
** credential

Use a gpg encrypted .netrc file.

#+BEGIN_SRC conf :tangle (tangle/file ".gitconfig" (bound-and-true-p git-p))
[credential]
helper = netrc -v -f ~/.netrc.gpg -f ~/.netrc
#+END_SRC
** advice

Shut up already, I don't need hints.

#+BEGIN_SRC conf :tangle (tangle/file ".gitconfig" (bound-and-true-p git-p))
[advice]
statushints = false
#+END_SRC
** gui

If I ever use the stupid gui, make it a little less derp.

#+BEGIN_SRC conf :tangle (tangle/file ".gitconfig" (bound-and-true-p git-p))
[gui]
fontui = -family Monaco -size 8 -weight normal -slant roman -underline 0 -overstrike 0
fontdiff = -family Monaco -size 8 -weight normal -slant roman -underline 0 -overstrike 0
#+END_SRC
** http

Make large git repos work better by increasing the post buffer.

#+BEGIN_SRC conf :tangle (tangle/file ".gitconfig" (bound-and-true-p git-p))
[http]
postBuffer = 209715200
#+END_SRC
** push

Forgot why this was here, some version git changed the default push behavior.

#+BEGIN_SRC conf :tangle (tangle/file ".gitconfig" (bound-and-true-p git-p))
[push]
default = simple
#+END_SRC
** url rewrites

Don't use git:// (ssh) to connect to github.

#+BEGIN_SRC conf :tangle (tangle/file ".gitconfig" (bound-and-true-p git-p))
[url "https://github.com/"]
insteadOf = git://github.com/
#+END_SRC

** username/email

Default username and email to use if not overridden.

#+BEGIN_SRC conf :tangle (tangle/file ".gitconfig" (bound-and-true-p git-p))
[user]
name = Mitch Tishmack
@@ -167,8 +198,17 @@ Common crap/build artifacts that git should always ignore.

* Cray overrides
** ~/.gitconfig
#+BEGIN_SRC conf :tangle (tangle/file ".gitconfig" (and (bound-and-true-p git-p) (bound-and-true-p cray-p)))
[user]
name = Mitch Tishmack
email = mtishmack@cray.com
#+BEGIN_SRC conf :tangle (tangle/file ".gitconfig-cray" (and (bound-and-true-p git-p) (bound-and-true-p cray-p)))
[user]
name = Mitch Tishmack
email = mtishmack@cray.com
#+END_SRC

** includes

By paths, adjust what username/email gets used. Git 2.13+ only.

#+BEGIN_SRC conf :tangle (tangle/file ".gitconfig" (bound-and-true-p git-p))
[includeIf "gitdir:~/src/stash.us.cray.com"]
path = ~/.gitconfig-cray
#+END_SRC

Chargement…
Annuler
Enregistrer