Skip to content

DFoxinator/dotfiles

 
 

Repository files navigation

weikinhuang's dotfiles

Installation

Install dotfiles with Git

You can clone the repository wherever you want. The bootstrapper script will create symlinks in the home directory to the proper files. When the git repo is updated, the files will be automatically updated when the session is restarted.

git clone https://github.com/weikinhuang/dotfiles.git && cd dotfiles && ./bootstrap.sh

Install dotfiles without Git

To source these files, type:

curl https://raw.github.com/weikinhuang/dotfiles/master/install.sh | sh

To update later on, just run that command again, and will create backups to the current files with a *.bak extension.

Add custom commands

If ~/.bash_local_exports exists, it will be sourced before the includes are included. If ~/.bash_local exists, it will be sourced after the includes are included.

The Bash Prompt

[exitstatus jobs time load user@host workdir<#files|filesize> (git info)]$

The prompt

[06:00:00 0.00 user#host ayi<4|2.4Mb> (master %)]$ 
[(E:1) 06:00:00 0.00 user#host ayi<4|2.4Mb> (master %)]$ 
[(E:1) bg:2 06:00:00 0.00 user#host ayi<4|2.4Mb> (master %)]$

When on ssh

on ssh ------------|
[06:00:00 0.00 user@host ayi<4|2.4Mb> (master %)]$

When on screen host is replaced with session name and is underlined.

load = cpu% on cygwin load = 1 min load avg on *nix/osx

Custom options for the PS1

Turn off the load indicator (speeds up the cygwin prompt by a bit)

export _PS1_HIDE_LOAD=1

About

Home directory settings

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Perl 79.5%
  • Shell 14.8%
  • JavaScript 5.7%