-
Notifications
You must be signed in to change notification settings - Fork 1
adding-bash-file-shebangs-and-readme-typo-fix-from-baliMac #10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
bazzani
wants to merge
5
commits into
master
Choose a base branch
from
adding-bash-file-shebangs-and-readme-typo-fix-from-baliMac
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
5 commits
Select commit
Hold shift + click to select a range
7b27f2a
fix typos in bash README
bazzani 777218e
Add shebang to top of all shell scripts, " test assignments in .bashrc
bazzani ecc1155
Add di alias; diff two files, 2 cols/no whitespace
bazzani 2c862f2
Add minimal, but rich .vimrc file
bazzani 06a0819
Add some ls aliases with -GF for colours
bazzani File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,2 +1,3 @@ | ||
| #!/bin/bash | ||
| if [ -f ~/.bashrc ]; then . ~/.bashrc; fi | ||
| if [ -f ~/.aliasrc ]; then . ~/.aliasrc; fi |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,4 +1,5 @@ | ||
| test -f ~/.aliasrc && . $_ | ||
| test -f ~/.git-completion.bash && . $_ | ||
| test -f ~/.git-prompt.sh && . $_ | ||
| test -f ~/.ssh-agent-start.sh && . $_ | ||
| #!/bin/bash | ||
| test -f ~/.aliasrc && . "$_" | ||
| test -f ~/.git-completion.bash && . "$_" | ||
| test -f ~/.git-prompt.sh && . "$_" | ||
| test -f ~/.ssh-agent-start.sh && . "$_" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,3 +1,4 @@ | ||
| #!/bin/bash | ||
| env=~/.ssh/agent.env | ||
|
|
||
| agent_load_env () { test -f "$env" && . "$env" >| /dev/null ; } | ||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,164 @@ | ||
| " URL: http://vim.wikia.com/wiki/Example_vimrc | ||
| " Authors: http://vim.wikia.com/wiki/Vim_on_Freenode | ||
| " Description: A minimal, but feature rich, example .vimrc. If you are a | ||
| " newbie, basing your first .vimrc on this file is a good choice. | ||
| " If you're a more advanced user, building your own .vimrc based | ||
| " on this file is still a good idea. | ||
|
|
||
| "------------------------------------------------------------ | ||
| " Features {{{1 | ||
| " | ||
| " These options and commands enable some very useful features in Vim, that | ||
| " no user should have to live without. | ||
|
|
||
| " Set 'nocompatible' to ward off unexpected things that your distro might | ||
| " have made, as well as sanely reset options when re-sourcing .vimrc | ||
| set nocompatible | ||
|
|
||
| " Attempt to determine the type of a file based on its name and possibly its | ||
| " contents. Use this to allow intelligent auto-indenting for each filetype, | ||
| " and for plugins that are filetype specific. | ||
| if has('filetype') | ||
| filetype indent plugin on | ||
| endif | ||
|
|
||
| " Enable syntax highlighting | ||
| if has('syntax') | ||
| syntax on | ||
| endif | ||
|
|
||
| "------------------------------------------------------------ | ||
| " Must have options {{{1 | ||
| " | ||
| " These are highly recommended options. | ||
|
|
||
| " Vim with default settings does not allow easy switching between multiple files | ||
| " in the same editor window. Users can use multiple split windows or multiple | ||
| " tab pages to edit multiple files, but it is still best to enable an option to | ||
| " allow easier switching between files. | ||
| " | ||
| " One such option is the 'hidden' option, which allows you to re-use the same | ||
| " window and switch from an unsaved buffer without saving it first. Also allows | ||
| " you to keep an undo history for multiple files when re-using the same window | ||
| " in this way. Note that using persistent undo also lets you undo in multiple | ||
| " files even in the same window, but is less efficient and is actually designed | ||
| " for keeping undo history after closing Vim entirely. Vim will complain if you | ||
| " try to quit without saving, and swap files will keep you safe if your computer | ||
| " crashes. | ||
| set hidden | ||
|
|
||
| " Note that not everyone likes working this way (with the hidden option). | ||
| " Alternatives include using tabs or split windows instead of re-using the same | ||
| " window as mentioned above, and/or either of the following options: | ||
| " set confirm | ||
| " set autowriteall | ||
|
|
||
| " Better command-line completion | ||
| set wildmenu | ||
|
|
||
| " Show partial commands in the last line of the screen | ||
| set showcmd | ||
|
|
||
| " Highlight searches (use <C-L> to temporarily turn off highlighting; see the | ||
| " mapping of <C-L> below) | ||
| set hlsearch | ||
|
|
||
| " Modelines have historically been a source of security vulnerabilities. As | ||
| " such, it may be a good idea to disable them and use the securemodelines | ||
| " script, <http://www.vim.org/scripts/script.php?script_id=1876>. | ||
| " set nomodeline | ||
|
|
||
|
|
||
| "------------------------------------------------------------ | ||
| " Usability options {{{1 | ||
| " | ||
| " These are options that users frequently set in their .vimrc. Some of them | ||
| " change Vim's behaviour in ways which deviate from the true Vi way, but | ||
| " which are considered to add usability. Which, if any, of these options to | ||
| " use is very much a personal preference, but they are harmless. | ||
|
|
||
| " Use case insensitive search, except when using capital letters | ||
| set ignorecase | ||
| set smartcase | ||
|
|
||
| " Allow backspacing over autoindent, line breaks and start of insert action | ||
| set backspace=indent,eol,start | ||
|
|
||
| " When opening a new line and no filetype-specific indenting is enabled, keep | ||
| " the same indent as the line you're currently on. Useful for READMEs, etc. | ||
| set autoindent | ||
|
|
||
| " Stop certain movements from always going to the first character of a line. | ||
| " While this behaviour deviates from that of Vi, it does what most users | ||
| " coming from other editors would expect. | ||
| set nostartofline | ||
|
|
||
| " Display the cursor position on the last line of the screen or in the status | ||
| " line of a window | ||
| set ruler | ||
|
|
||
| " Always display the status line, even if only one window is displayed | ||
| set laststatus=2 | ||
|
|
||
| " Instead of failing a command because of unsaved changes, instead raise a | ||
| " dialogue asking if you wish to save changed files. | ||
| set confirm | ||
|
|
||
| " Use visual bell instead of beeping when doing something wrong | ||
| set visualbell | ||
|
|
||
| " And reset the terminal code for the visual bell. If visualbell is set, and | ||
| " this line is also included, vim will neither flash nor beep. If visualbell | ||
| " is unset, this does nothing. | ||
| set t_vb= | ||
|
|
||
| " Enable use of the mouse for all modes | ||
| if has('mouse') | ||
| set mouse=a | ||
| endif | ||
|
|
||
| " Set the command window height to 2 lines, to avoid many cases of having to | ||
| " "press <Enter> to continue" | ||
| set cmdheight=2 | ||
|
|
||
| " Display line numbers on the left | ||
| set number | ||
|
|
||
| " Quickly time out on keycodes, but never time out on mappings | ||
| set notimeout ttimeout ttimeoutlen=200 | ||
|
|
||
| " Use <F11> to toggle between 'paste' and 'nopaste' | ||
| set pastetoggle=<F11> | ||
|
|
||
|
|
||
| "------------------------------------------------------------ | ||
| " Indentation options {{{1 | ||
| " | ||
| " Indentation settings according to personal preference. | ||
|
|
||
| " Indentation settings for using 4 spaces instead of tabs. | ||
| " Do not change 'tabstop' from its default value of 8 with this setup. | ||
| set shiftwidth=4 | ||
| set softtabstop=4 | ||
| set expandtab | ||
|
|
||
| " Indentation settings for using hard tabs for indent. Display tabs as | ||
| " four characters wide. | ||
| "set shiftwidth=4 | ||
| "set tabstop=4 | ||
|
|
||
|
|
||
| "------------------------------------------------------------ | ||
| " Mappings {{{1 | ||
| " | ||
| " Useful mappings | ||
|
|
||
| " Map Y to act like D and C, i.e. to yank until EOL, rather than act as yy, | ||
| " which is the default | ||
| map Y y$ | ||
|
|
||
| " Map <C-L> (redraw screen) to also turn off search highlighting until the | ||
| " next search | ||
| nnoremap <C-L> :nohl<CR><C-L> | ||
|
|
||
| "------------------------------------------------------------ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,23 +1,23 @@ | ||
| # Bash command prompt settings | ||
|
|
||
| Look at [.bash_profile](.bash_profile) -> [.bashrc](.bashrc) -> [.aliasrc](.aliasrc) to see the many shortcuts I use on a dailty basis | ||
| Look at [.bash_profile](.bash_profile) -> [.bashrc](.bashrc) -> [.aliasrc](.aliasrc) to see the many short cuts I use on a daily basis. | ||
|
|
||
| ## Install steps | ||
|
|
||
| _These files are for use on Mac OS, and \*nix systems._ | ||
|
|
||
| Copy all the shell script files in this directory to your home directory: (e.g. `~/` or `/Users/barry`) | ||
| - `.aliasrc` | ||
| - `.bash*` | ||
| - `*.sh` | ||
| - `*.bash` | ||
| - `.aliasrc` | ||
| - `.bash*` | ||
| - `*.sh` | ||
| - `*.bash` | ||
|
|
||
| ## Colour settings | ||
| - Screen background | ||
| - R:0 | ||
| - G:0 | ||
| - B:80 | ||
| - Screen text | ||
| - R:187 | ||
| - G:187 | ||
| - B:0 | ||
| - R:187 | ||
| - G:187 | ||
| - B:0 | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,3 +1,4 @@ | ||
| #!/bin/bash | ||
| # bash/zsh git prompt support | ||
| # | ||
| # Copyright (C) 2006,2007 Shawn O. Pearce <spearce@spearce.org> | ||
|
|
||
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nice one!