Skip to content

Instantly share code, notes, and snippets.

@lmatteis
Created October 12, 2016 07:53
Show Gist options
  • Select an option

  • Save lmatteis/48ad88ec94b871eb36c80d558f34e12d to your computer and use it in GitHub Desktop.

Select an option

Save lmatteis/48ad88ec94b871eb36c80d558f34e12d to your computer and use it in GitHub Desktop.
dotfiles
'body':
'ctrl-tab ^ctrl': 'unset!'
'ctrl-tab': 'pane:show-next-item'
'ctrl-shift-tab ^ctrl': 'unset!'
'ctrl-shift-tab': 'pane:show-previous-item'
set tabstop=2 " tab width is 4 spaces
set shiftwidth=2 " indent also with 4 spaces
set expandtab
syntax on " syntax highlighting
filetype indent on " activates indenting for files
set autoindent " auto indenting
set number " line numbers
colorscheme desert " colorscheme desert
set nobackup " get rid of anoying ~file
set scrolloff=10
Last login: Fri Oct 7 16:09:41 on ttys005
mofo:~ lmatteis$ screen -dr
Processes: 175 total, 2 running, 7 stuck, 166 sleeping, 904 threads 18:11:26
Load Avg: 3.84, 4.44, 3.55 CPU usage: 16.0% user, 54.0% sys, 30.0% idle SharedLibs: 59M resident, 9504K data, 4444K linkedit.
MemRegions: 29260 total, 749M resident, 17M private, 1116M shared. PhysMem: 4076M used (1101M wired), 18M unused.
VM: 1047G vsize, 535M framework vsize, 4222289(0) swapins, 4787110(0) swapouts. Networks: packets: 32753108/11G in, 80416381/10G out.
Disks: 887000/28G read, 683390/46G written.
PID COMMAND %CPU TIME #TH #WQ #PORT MEM PURG CMPRS PGRP PPID STATE BOOSTS %CPU_ME %CPU_OTHRS UID FAULTS
5355 top 0.0 00:00.13 1/1 0 16+ 1604K+ 0B 0B 5355 1573 running *0[1+] 0.00000 0.00000 0 937+
5354 sysmond 0.0 00:00.04 2 1 23+ 968K+ 0B 0B 5354 1 sleeping *0[1+] 0.00000 0.00000 0 1070+
5353 cupsd 0.0 00:00.10 3 0 43+ 3428K+ 0B 0B 5353 1 sleeping 0[0] 0.00000 0.00000 0 2039+
5351 networkd_pri 0.0 00:00.01 2 1 26+ 136K+ 0B 676K+ 5351 1 sleeping 0[0] 0.00000 0.00000 0 1002+
5350 CalNCService 0.0 00:00.68 2 0 101+ 1504K+ 0B 4960K+ 5350 1 sleeping *0[7+] 0.00000 0.00000 501 6224+
5349 CalendarAgen 0.0 00:01.05 2 0 110+ 3208K+ 0B 4656K+ 5349 1 sleeping *0[11+] 0.00000 0.00000 501 7334+
5348 syncdefaults 0.0 00:00.60 2 0 58+ 1680K+ 0B 3520K+ 5348 1 sleeping *0[3+] 0.00000 0.00000 501 5139+
5347 suggestd 0.0 00:00.50 2 0 81+ 2428K+ 0B 3684K+ 5347 1 sleeping *0[2+] 0.00000 0.00000 501 6123+
5343 bash 0.0 00:00.01 1 0 17+ 64K+ 0B 752K+ 5343 5341 sleeping *0[1+] 0.00000 0.00000 501 832+
5342 com.apple.Ac 0.0 00:00.02 2 1 23+ 8192B+ 0B 876K+ 5342 1 sleeping *0[1+] 0.00000 0.00000 0 1125+
5341 login 0.0 00:00.04 3 1 30+ 8192B+ 0B 1048K+ 5341 971 stuck *0[9+] 0.00000 0.00000 0 1463+
5340 Google Chrom 0.0 00:06.72 14 0 128+ 39M+ 0B 30M+ 373 373 sleeping *0[2+] 0.00000 0.00000 501 122902+
5338 aslmanager 0.0 00:00.12 2 1 30+ 16K+ 0B 1304K+ 5338 1 sleeping *0[1+] 0.00000 0.00000 0 2560+
5337 installd 0.0 00:00.07 2 0 36+ 16K+ 0B 1228K+ 5337 1 sleeping *0[8+] 0.00000 0.00000 0 2390+
5335 systemstatsd 0.0 00:00.05 2 1 21+ 4096B+ 0B 2148K+ 5335 1 sleeping *0[1+] 0.00000 0.00000 0 1016+
5334 deleted 0.0 00:00.48 2 1 40+ 904K+ 0B 2140K+ 5334 1 sleeping *0[83+] 0.00000 0.00000 0 5087+
5332 com.apple.Pe 0.0 00:00.04 4 3 31+ 432K+ 0B 456K+ 5332 1 sleeping *0[17+] 0.00000 0.00000 0 2530+
5330 coresymbolic 0.0 00:00.02 2 1 23+ 4096B+ 0B 2088K+ 5330 1 sleeping *0[15+] 0.00000 0.00000 0 1524+
5329 CloudKeychai 0.0 00:00.02 2 0 43+ 8192B+ 0B 992K+ 5329 1 sleeping *0[1+] 0.00000 0.00000 501 1599+
5328 sandboxd 0.0 00:00.24 3 1 54+ 56K+ 0B 1864K+ 5328 1 sleeping *0[1+] 0.00000 0.00000 0 2980+
5326 diagnosticd 0.0 00:00.03 2 1 36+ 4096B+ 0B 1376K+ 5326 1 sleeping *0[1+] 0.00000 0.00000 0 1551+
5325 secd 0.0 00:00.05 2 1 51+ 4096B+ 0B 1756K+ 5325 1 sleeping *0[1+] 0.00000 0.00000 501 1604+
5324 coreduetd 0.0 00:00.56 5 3 75+ 1964K+ 0B 2420K+ 5324 1 sleeping *0[16+] 0.00000 0.00000 0 11047+
5322 accountsd 0.0 00:00.14 2 0 80+ 24K+ 0B 2136K+ 5322 1 sleeping *0[15+] 0.00000 0.00000 501 3470+
5321 com.apple.Ad 0.0 00:00.08 2 0 54+ 32K+ 0B 1356K+ 5321 1 sleeping *0[2+] 0.00000 0.00000 501 3443+
5320 tccd 0.0 00:00.10 2 0 47+ 332K+ 0B 2720K+ 5320 1 sleeping *0[6+] 0.00000 0.00000 501 2404+
5319 com.apple.Co 0.0 00:00.03 2 1 19+ 376K+ 0B 1544K+ 5319 1 sleeping *0[5+] 0.00000 0.00000 0 1379+
5318 cfprefsd 0.0 00:00.18 2 1 77+ 672K+ 0B 364K+ 5318 1 sleeping *0[106+] 0.00000 0.00000 501 3306+
5317 secinitd 0.0 00:00.17 2 1 35+ 268K+ 0B 2012K+ 5317 1 sleeping *0[4+] 0.00000 0.00000 501 3883+
5316 AirPlayUIAge 0.0 00:00.15 5 2 190+ 776K+ 0B 1932K+ 5316 1 sleeping *0[18+] 0.00000 0.00000 501 5644+
(dev) bash-4.4$ q 0.0 00:00.37 2 0 97+ 980K+ 0B 3792K+ 5315 1 sleeping *0[4+] 0.00000 0.00000 501 6723+
: 0 1 2* 3 7:13PM
[Restored Oct 12, 2016, 9:52:55 AM]
Last login: Wed Oct 12 09:51:35 on console
Restored session: Fri Oct 7 19:13:30 CEST 2016
mofo:~ lmatteis$ vim ~/.vim
.vim/ .viminfo .vimrc
mofo:~ lmatteis$ vim ~/.vimrc
mofo:~ lmatteis$ vim ~/.screenrc
# minimal status line with clock flush right
hardstatus alwayslastline "%{=b}%{G} : %{b}%w %=%{kG}%C%A"
# copy screen clipboard to mac clipboard
bind b eval "writebuf" "exec sh -c 'pbcopy < /tmp/screen-exchange'"
# enable bold
attrcolor b ".I"
# allow 256 colors
termcapinfo xterm 'Co#256:AB=\E[48;5;%dm:AF=\E[38;5;%dm'
# xterm understands both im/ic and doesn't have a status line.
# Note: Do not specify im and ic in the real termcap/info file as
# some programs (e.g. vi) will not work anymore.
termcap xterm 'hs@:cs=\E[%i%d;%dr:im=\E[4h:ei=\E[4l'
terminfo xterm 'hs@:cs=\E[%i%p1%d;%p2%dr:im=\E[4h:ei=\E[4l'
termcap xterm-color 'hs@:cs=\E[%i%d;%dr:im=\E[4h:ei=\E[4l'
terminfo xterm-color 'hs@:cs=\E[%i%p1%d;%p2%dr:im=\E[4h:ei=\E[4l'
# this makes backspace sane on debian systems
termcapinfo xterm 'bc@:bs@'
termcapinfo xterm-color 'bc@:bs@'
# 80/132 column switching must be enabled for ^AW to work
# change init sequence to not switch width
termcapinfo xterm 'Z0=\E[?3h:Z1=\E[?3l:is=\E[r\E[m\E[2J\E[H\E[?7h\E[?1;4;6l'
termcapinfo xterm-color 'Z0=\E[?3h:Z1=\E[?3l:is=\E[r\E[m\E[2J\E[H\E[?7h\E[?1;4;6l'
# tell screen that xterm can switch to dark background and has function
# keys.
termcapinfo xterm 'VR=\E[?5h:VN=\E[?5l'
termcapinfo xterm 'k1=\E[11~:k2=\E[12~:k3=\E[13~:k4=\E[14~'
termcapinfo xterm 'kh=\EOH:kI=\E[2~:kD=\E[3~:kH=\EOF:kP=\E[5~:kN=\E[6~'
termcapinfo xterm-color 'VR=\E[?5h:VN=\E[?5l'
termcapinfo xterm-color 'k1=\E[11~:k2=\E[12~:k3=\E[13~:k4=\E[14~'
termcapinfo xterm-color 'kh=\EOH:kI=\E[2~:kD=\E[3~:kH=\EOF:kP=\E[5~:kN=\E[6~'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment