gavinmbell / bash_resources Goto Github PK
View Code? Open in Web Editor NEWMaking BASH environment setup simple and painless...
License: Other
Making BASH environment setup simple and painless...
License: Other
When logging via VPN I get:
You are logged into a Darwin Machine...(Version 12.2.0)
ProductName: Mac OS X
ProductVersion: 10.8.2
BuildVersion: 12C60
Host => vpnb-user-128-15-245-26.llnl.gov
(font: puffy)
_ _ __ _ _ _____ __ _ _ _____ __ _____
( ) /' ) /'\ /'_
\ /' )( ___) /'\ ( )( ) ( ___) /'__
\ ( )
_ _ _ _ ___ | | ______ _ _ ___ __ _ __ (, |() ) )( () ) (, || ( () ) )| || | | ( () ) )| (
( ) ( )( '\ /' _
| '\(______)( ) ( )/',__) /'__
( '**)(**) | | /' / > _ <'() | ||_ \(______) /' / | || |_ |___
() /' / | _ \ | \_/ || (_) )| ( ) || |_) ) | (_) |\__, \( ___/| | | | /' /( )( (_) ) | |( )_) | /' /( )(__ ,__)( )_) | /' /( )| (_) |
/'| ,/'() ()(,/' \___/'(____/
**)() ()(**/'\___/' (_)
**/' (**/' () ___/' (_____/'
__/'
| |
()
Hardware: x86_64....
Using Emacs Bindings...
9:50 up 19:30, 4 users, load averages: 1.41 1.61 1.41
(psst... may want to install "fortune")
doutriaux1@sofia:[~]:[79]>
Notice how the prompt is correct but not the banner.
New machine, fresh clone (from master)
-bash-4.1$ ./setup --force
Couldn't find [fortune]
Warning: You may want to install the missing programs for optimum use...
Please install the missing program(s) for optimum use (yum, apt-get, rpm, etc..)
setting up bash_aliases... linked file... [OK]
setting up bash_completion... linked file... [OK]
setting up bash_completion.d... linked file... [OK]
setting up bash_functions... linked file... [OK]
setting up bash_git... linked file... [OK]
setting up bash_logout... /home/guests/doutriaux1/.bash_logout' ->
/home/guests/doutriaux1/.bash_logout.bak'
linked file... [OK]
setting up bash_profile... [OK]
setting up bashrc... ./setup: line 76: cd: git/bash_files: No such file or directory
./setup: line 76: cd: git/bash_files: No such file or directory
./setup: line 76: cd: git/bash_files: No such file or directory
./setup: line 76: cd: git/bash_files: No such file or directory
./setup: line 76: cd: git/bash_files: No such file or directory
./setup: line 76: cd: git/bash_files: No such file or directory
./setup: line 76: cd: git/bash_files: No such file or directory
./setup: line 76: cd: git/bash_files: No such file or directory
./setup: line 76: cd: git/bash_files: No such file or directory
./setup: line 76: cd: git/bash_files: No such file or directory
./setup: line 76: cd: git/bash_files: No such file or directory
./setup: line 76: cd: git/bash_files: No such file or directory
./setup: line 76: cd: git/bash_files: No such file or directory
./setup: line 76: cd: git/bash_files: No such file or directory
./setup: line 76: cd: git/bash_files: No such file or directory
./setup: line 76: cd: git/bash_files: No such file or directory
./setup: line 76: cd: git/bash_files: No such file or directory
./setup: line 76: cd: git/bash_files: No such file or directory
./setup: line 76: cd: git/bash_files: No such file or directory
./setup: line 76: cd: git/bash_files: No such file or directory
./setup: line 76: cd: git/bash_files: No such file or directory
./setup: line 76: cd: git/bash_files: No such file or directory
./setup: line 76: cd: git/bash_files: No such file or directory
./setup: line 76: cd: git/bash_files: No such file or directory
./setup: line 76: cd: git/bash_files: No such file or directory
./setup: line 76: cd: git/bash_files: No such file or directory
./setup: line 76: cd: git/bash_files: No such file or directory
./setup: line 76: cd: git/bash_files: No such file or directory
./setup: line 76: cd: git/bash_files: No such file or directory
./setup: line 76: cd: git/bash_files: No such file or directory
./setup: line 76: cd: git/bash_files: No such file or directory
./setup: line 76: cd: git/bash_files: No such file or directory
./setup: line 76: cd: git/bash_files: No such file or directory
./setup: line 76: cd: git/bash_files: No such file or directory
./setup: line 76: cd: git/bash_files: No such file or directory
./setup: line 76: cd: git/bash_files: No such file or directory
./setup: line 76: cd: git/bash_files: No such file or directory
./setup: line 76: cd: git/bash_files: No such file or directory
./setup: line 76: cd: git/bash_files: No such file or directory
./setup: line 76: cd: git/bash_files: No such file or directory
./setup: line 76: cd: git/bash_files: No such file or directory
./setup: line 76: cd: git/bash_files: No such file or directory
linked file... [OK]
Don't forget to run: source /home/guests/doutriaux1/.bashrc
On a fresh install after running setup you're still stuck in your poor man environment sourcing ${home}/.bashrc at the end of setup would be nice.
Latest git seems to show repo as dirty if files that are not in .gitignore or in the repo (no git add) are present:
doutriaux1@sofia:[uvcdat]:[master*]:[375]> git --version
git version 1.8.3.2
doutriaux1@sofia:[uvcdat]:[master*]:[375]> git status
# On branch master
# Untracked files:
# (use "git add <file>..." to include in what will be committed)
#
# Packages/vcs/build/
# installation/install.py
nothing added to commit but untracked files present (use "git add" to track)
On Mac (fresh mac), nothing happens because there is no .bash_profile
Solution:
create symlink from .bash_profile -> .bashrc
Now: IF a .bash_profile exits EITHER:
*) Do nothing
*) Convert .bash_profile to .bash_local ?
if you do not have access to the repo. chech_update tells you you're up to date even though it couldn't reach and ask. example:
doutriaux1@meryem:[~]:[84882]> check_for_bash_resources_update
Inspecting Bash Resources...
Querying for updates...
You are up to date :-)
doutriaux1@meryem:[/git/bash_resources]:[devel][84895]> git fetch
ssh: connect to host github.com port 22: Connection refused
fatal: The remote end hung up unexpectedly
I'd like to be able to change the banner colors.
example
ascii art --> blue
system info --> yellow
fortune --> red
while it is nice to have the prompt tell me which branch I'm on, when working with many branches in many repos, it would be nice to have the option to show the remote we're on. Maybe a switch (via flag) could be implemented that would show either the branch name
doutriaux1@omar:[uvcdat]:[devel]:[3410]>
or the actual remote/branch combo when a branch is tracked:
doutriaux1@omar:[uvcdat]:[dev/master]:[3410]>
In the installation script "setup", please implement the "--revert" (uninstall) functionality.
Banner are cached for efficiency, but when vpn-ing in the hostname varies and the banner doesn't match the hostname.
We could add a "text" line at the top of the banner and check it against hostname in order to regenrate.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.