dotfiles

Older, unmaintained dotfiles by mrgrouse
Log | Files | Refs | README

README.md (2280B)


      1 ## agnoster
      2 
      3 A fish theme optimized for people who use:
      4 
      5 * Solarized
      6 * Git
      7 * Mercurial (requires 'hg prompt')
      8 * SVN
      9 * Unicode-compatible fonts and terminals (Use a Powerline patched font, e.g., from here: https://github.com/powerline/fonts)
     10 * Fish Vi-mode
     11 
     12 For Mac users, I highly recommend iTerm 2 + Solarized Dark
     13 
     14 ![agnoster theme](https://f.cloud.github.com/assets/1765209/255379/452c668e-8c0b-11e2-8a8e-d1d13e57d15f.png)
     15 
     16 
     17 #### Characteristics
     18 
     19 * If the previous command failed (✘)
     20 - If private mode is enabled (🔒)
     21 * User @ Hostname (if user is not DEFAULT_USER, which can be set in your profile)
     22 * Git status
     23 * Subversion status enabled by adding `set -g theme_svn_prompt_enabled yes` to your `config.fish`.
     24 * Mercurial status enabled by adding `set -g theme_mercurial_prompt_enabled yes` to your `config.fish`.
     25 * Branch () or detached head (➦)
     26 * Current branch / SHA1 in detached head state
     27   * Current branch name is shortened to 15 characters by default. Change it to `N` characters with `set -g fish_vcs_branch_name_length N` in your `config.fish`.
     28 * Dirty working directory (±, color change)
     29   * By default, git repos will show as dirty if there are untracked files. This can be changed by adding `set -g fish_git_prompt_untracked_files no` to your `config.fish`. This value is passed into `git status --untracked-files`, so any value git supports is valid for this command
     30 * Current working directory
     31 * Elevated (root) privileges (⚡)
     32 * Current virtual environment (Python virtualenv and Nix Shell)
     33 You will probably want to disable the default virtualenv prompt. Add to your [`init.fish`](https://github.com/oh-my-fish/oh-my-fish#dotfiles):
     34 `set -gx VIRTUAL_ENV_DISABLE_PROMPT 1`
     35 * Indicate vi mode.
     36 * Source control blacklist. To disable source control prompts in certain directories, you can add the following to your `init.fish` or `config.fish`: `set -g scm_prompt_blacklist "/path/to/blacklist"`.
     37 * The icons can be configured by setting variables. E.g. to replace the icon of failed command from the default "✘" use `set -g glyph_status_nonzero "💀"`. For  configuration options see [`fish_prompt.fish`](https://github.com/oh-my-fish/theme-agnoster/blob/master/functions/fish_prompt.fish).
     38 
     39 Ported from https://gist.github.com/agnoster/3712874.