Skip to content

Instantly share code, notes, and snippets.

View freddez's full-sized avatar

Frédéric de Zorzi freddez

  • Arbas, France
View GitHub Profile
@freddez
freddez / build-emacs.sh
Created July 17, 2024 13:09 — forked from abidanBrito/build-emacs.sh
Build GNU Emacs from source.
#!/usr/bin/env bash
## Author: Abidán Brito
## This script builds GNU Emacs 29.1 with support for native elisp compilation,
## tree-sitter, libjansson (C JSON library), pure GTK and mailutils.
# Exit on error and print out commands before executing them.
set -euxo pipefail
# Let's set the number of jobs to something reasonable; keep 2 cores
@freddez
freddez / git.ps1.bash
Last active March 21, 2016 11:52 — forked from wolever/profile
Fast 100% bash prompt with current git branch info source it in your .bashrc
# prompt examples:
# [3 jobs master virtualenv] ~/code/myproject/foo
# [1 job my-branch virtualenv] ~/code/bar/
# [virtualenv] ~/code/
# ~
# Very, very fast, only requiring a couple of fork()s (and no forking at all to determine the current git branch)
if [[ "$USER" == "root" ]]
then
export PS1="\e[1;31m\]\u \[\e[1;33m\]\w\[\e[0m\] ";