Git Product home page Git Product logo

devprof's Introduction

Dev Profile

Development profile for bash, vim, git

Screenshot

Install

bash <(curl -s https://raw.githubusercontent.com/hackorama/devprof/master/devprof.sh)

$ bash <(curl -s https://raw.githubusercontent.com/hackorama/devprof/master/devprof.sh)
Updated profile files:

/Users/hackorama/.bash_profile
/Users/hackorama/.bashrc
/Users/hackorama/.devprof/git-completion.bash
/Users/hackorama/.devprof/git-prompt.sh
/Users/hackorama/.vim/colors/monokai.vim
/Users/hackorama/.vimrc

Ready Steady Go !
$

Help

$ devprofhelp
devprof : will update using 'bash <(curl -s https://raw.githubusercontent.com/hackorama/devprof/master/devprof.sh)'

Update

$ devprof

Updating using : bash <(curl -s https://raw.githubusercontent.com/hackorama/devprof/master/devprof.sh)

Do you want to update the dev profile (y/n) y

Updated profile files:

/Users/hackorama/.bash_profile
/Users/hackorama/.bashrc
/Users/hackorama/.devprof/git-completion.bash
/Users/hackorama/.devprof/git-prompt.sh
/Users/hackorama/.devprof/tag
/Users/hackorama/.vim/colors/monokai.vim
/Users/hackorama/.vimrc

Backed up existing profile files:

/Users/hackorama/.bash_profile.2019-03-08-20:21:19.bak
/Users/hackorama/.bashrc.2019-03-08-20:21:19.bak
/Users/hackorama/.vimrc.2019-03-08-20:21:20.bak

Ready Steady Go !
$

Features

Prompt

Set a tag on prompt to identify your servers by nick name

hackorama@cloud ~  $
hackorama@cloud ~  $ echo "GATEWAY" > ~/.devprof/tag
GATEWAY hackorama@cloud ~  $
GATEWAY hackorama@cloud ~  $

Set a temporary tag on prompt

GATEWAY hackorama@cloud ~  $
GATEWAY hackorama@cloud ~  $ export TAG="STAGING GATEWAY"
STAGING GATEWAY hackorama@cloud ~  $
STAGING GATEWAY hackorama@cloud ~  $
STAGING GATEWAY hackorama@cloud ~  $ unset TAG
GATEWAY hackorama@cloud ~  $
GATEWAY hackorama@cloud ~  $

The tag could also be the output of a script, just make the tag file executable.

 hackorama@home ~  $ touch .devprof/tag
 hackorama@home ~  $ chmod +x .devprof/tag
 hackorama@home ~  $ vi .devprof/tag
 2.07 2.18 2.34 hackorama@home ~  $
 1.99 2.16 2.34 hackorama@home ~  $ cat .devprof/tag
uptime | awk -F'[a-z]:' '{ print $2}'
 2.07 2.18 2.34 hackorama@home ~  $
 1.91 2.14 2.33 hackorama@home ~  $

Can use color escape sequence and unicode symbols or emojis for the tag

$ export TAG="\e[34m▶\e[0m BIONIC"

$ echo "\e[31mRED\e[0m ROCK" > ~/.devprof/tag

Git

  • Git command completion
  • Git status on prompt
DEV hackorama@hackorama devprof  (master =) $ vi README.md
DEV hackorama@hackorama devprof  (master *=) $

Vim

Colors, Syntax and Status Line

Vim Screenshot

iTerm2 Badge

Optional feature when using iTerm2 on MacOS.

Works with iTerm2 Shell Integration Badges.

iTerm2 Badge Screenshot

  • curl -L https://iterm2.com/shell_integration/bash -o ~/.devprof/iterm2_shell_integration.bash
  • Set Preferences>Profiles>General>Badge : \(user.badge)
  • Use env : export BADGE=devbox
  • Use file : echo "CLOUD" > ~/.devprof/badge
  • Use script : echo "date +"%H:%M" > ~/.devprof/badge ; chmod +x ~/.devprof/badge

devprof's People

Contributors

hackorama avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.