| description |
|---|
Hugo Cisneros' resume |
For a PDF version, see here
| #!/bin/bash | |
| input=$(cat) | |
| cwd=$(echo "$input" | jq -r '.workspace.current_dir // .cwd') | |
| dir=$(basename "$cwd") | |
| # Git branch + clean/dirty | |
| git_info="" | |
| if git -C "$cwd" rev-parse --git-dir > /dev/null 2>&1; then | |
| branch=$(git -C "$cwd" --no-optional-locks rev-parse --abbrev-ref HEAD 2>/dev/null) | |
| if [ -n "$branch" ]; then |
| description |
|---|
Hugo Cisneros' resume |
For a PDF version, see here
| ;;; publish --- Summary | |
| ;;; Commentary: | |
| (require 'find-lisp) | |
| ;;; Code: | |
| (defun hugcis/publish-note (file) | |
| "Publish a note in FILE." | |
| (with-current-buffer (find-file-noselect file) | |
| (projectile-mode -1) | |
| (setq org-hugo-section "notes" |
| # Original file https://bitbucket.org/durdn/cfg/raw/master/.bin/install.sh | |
| # Config is stored in $HOME as a bare git repo | |
| git clone --bare https://github.com/hugcis/dotfiles.git $HOME/.cfg | |
| function config { | |
| /usr/bin/git --git-dir=$HOME/.cfg/ --work-tree=$HOME $@ | |
| } | |
| mkdir -p .config-backup |