Safe Haskell | None |
---|---|
Language | Haskell2010 |
- uid :: IO (Maybe String)
- hostname :: IO (Maybe String)
- pwd :: Int -> IO (Maybe String)
- shortDir :: [String] -> String
- status :: VCS a => a -> IO (Maybe String, Maybe String, Maybe String)
- branch :: VCS a => a -> IO (Maybe String)
- simpleCmd :: (String -> Maybe String) -> String -> IO (Maybe String)
- argedCmd :: (String -> Maybe String) -> String -> [String] -> IO (Maybe String)
Get basic information
concating the given list of name into a path. Notice that, this function will NOT add root, /, or home, ~, to the leftmost position. For example,
>>>
pwdShorten ["A","B","C"]
"A/B/C"
Get VCS-related information
:: VCS a | |
=> a | version control system |
-> IO (Maybe String, Maybe String, Maybe String) | (cleanliness, ahead, behind) |
get current status.
get current name of git-branch