class Rprompt::GitSha

Public Instance Methods

sha() click to toggle source

@return [String] last five numbers form the sha1

# File lib/rprompt.rb, line 54
def sha
        commandResult.chomp[-6,6]
end
show() click to toggle source

@return [String] terminal representation of the number returned by ‘sha’

# File lib/rprompt.rb, line 59
def show
        termShow({:color => color, :symbol => symbol, :content => sha})
end