This file contains hidden or 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
package cmd | |
import ( | |
"log" | |
"github.com/spf13/cobra" | |
"github.com/spf13/viper" | |
) | |
// Task tries to be similar to os.exec.Cmd | |
type Task struct { |
This file contains hidden or 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
defmodule Fibonacci do | |
def number(0) do | |
1 | |
end | |
def number(1) do | |
1 | |
end | |
def number(n) do |
This file contains hidden or 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
function git_prompt { | |
# get the current status in short notation | |
local status=$(git status -sb 2> /dev/null) | |
# if we don't get any output, we're not in a git repo | |
if [ -z "$status" ]; then | |
return | |
fi | |
# determine color for displaying the branch name |