José Antonio Pérez Sánchez avatar José Antonio Pérez Sánchez committed 0379dd0 Merge

Merge branch 'master' of ssh://bitbucket.org/zundr/castle-zundr-dotfiles

Comments (0)

Files changed (2)

 	email = jose.a.perez.sanchez@gmail.com
 [core]
 	editor = vim
+[alias]
+  st = status
+  co = checkout
+  ci = commit
+  br = branch
+  df = diff
+  lp = log -p
+  com = checkout master
+  fe = fetch origin
+  hr = reset origin/master --hard
+  me = config user.name
+  bn = !git for-each-ref --format='%(refname:short)' refs/heads/master
+  lg = log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr)%Creset' --abbrev-commit --date=relative
+  today = !git all --since='12am' --committer=\"`git me`\"
+  today-all = !git all --since='12am'
+  sync = !git update && git co master && git pull && git co @{-1}
+  resync = !sh -c 'BRANCH_NAME=master && git com && git fe && git hr && git rebase master '

home/bin/remove-old-kernels

+#!/bin/sh
+dpkg -l 'linux-*' | sed '/^ii/!d;/'"$(uname -r | sed "s/\(.*\)-\([^0-9]\+\)/\1/")"'/d;s/^[^ ]* [^ ]* \([^ ]*\).*/\1/;/[0-9]/!d' | xargs sudo apt-get -y purge
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.