Giter Club home page Giter Club logo

bash_resources's People

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar

bash_resources's Issues

vpn messes up hostname

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.

Error at setup time

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

newer version of git show dirty repo all the time

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)

no .bash_profile

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 ?

chech_update doen't let you know it failed to check

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

theme colors

I'd like to be able to change the banner colors.
example
ascii art --> blue
system info --> yellow
fortune --> red

git prompt could show remote

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]>

Implement "Revert"...

In the installation script "setup", please implement the "--revert" (uninstall) functionality.

banner cache immutable

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.

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.