Skip to content

ivanfurlan/agnoster-repopath-theme

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 

Repository files navigation

agnoster-repopath.zsh-theme

Custom theme based on https://github.com/agnoster/agnoster-zsh-theme and https://github.com/ChesterYue/ohmyzsh-theme-passion

Features

  • Inside a repository (git or mercurial) show repo's name and the path only from root directory (where there is .git or .hg)
  • Show current time in prompt
  • After each command show the time cost

How it looks like

Terminal example

Installation

Download theme

git clone https://github.com/ivanfurlan/agnoster-repopath-theme.git ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/themes/agnoster-repopath

Create link for zsh

ln -P ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/themes/agnoster-repopath/agnoster-repopath.zsh-theme ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/themes/agnoster-repopath.zsh-theme

Create a backup of .zshrc

cp ~/.zshrc ~/.zshrc-bk

Set theme

sed -i 's/ZSH_THEME=".*"/ZSH_THEME="agnoster-repopath"/1' ~/.zshrc

Installation with one command

git clone https://github.com/ivanfurlan/agnoster-repopath-theme.git ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/themes/agnoster-repopath && ln -P ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/themes/agnoster-repopath/agnoster-repopath.zsh-theme ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/themes/agnoster-repopath.zsh-theme && cp ~/.zshrc ~/.zshrc-bk && sed -i 's/ZSH_THEME=".*"/ZSH_THEME="agnoster-repopath"/1' ~/.zshrc

Plugins that I use

plugins=(git vscode node docker docker-compose python copyfile gitignore mercurial mvn sudo command-not-found colored-man-pages svn jhipster zsh-autosuggestions zsh-syntax-highlighting autoupdate)

zsh-autosuggestions: https://github.com/zsh-users/zsh-autosuggestions

zsh-syntax-highlighting: https://github.com/zsh-users/zsh-syntax-highlighting

JHipster: https://github.com/jhipster/jhipster-oh-my-zsh-plugin

Auto update themes and plugins

autoupdate: https://github.com/TamCore/autoupdate-oh-my-zsh-plugins

About

Custom theme for oh-my-zsh

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages