This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# | |
# DESCRIPTION: | |
# | |
# Set the bash prompt according to: | |
# * the branch/status of the current git repository | |
# * the branch of the current subversion repository | |
# * the return value of the previous command | |
# | |
# USAGE: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python3 | |
import argparse | |
import os | |
from os import environ | |
from subprocess import check_call | |
# Store the current directory | |
owd = os.getcwd() | |
# Setup the supported command-line arguments |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(ns org.ozias.git | |
(:require [me.raynes.conch :refer (with-programs)])) | |
(def ^:private git-porcelain | |
["add" "am" "bisect" "branch" "bundle" "checkout" "cherry-pick" "citool" | |
"clean" "clone" "commit" "describe" "diff" "fetch" "format-patch" | |
"gc" "grep" "gui" "init" "log" "merge" "mv" "notes" "pull" "push" | |
"rebase" "reset" "revert" "rm" "shortlog" "show" "stash" "status" | |
"submodule" "tag"]) |