Skip to content

Instantly share code, notes, and snippets.

@benhamill
Last active February 25, 2016 06:04
Show Gist options
  • Save benhamill/a7cd465f95ba85c9908b to your computer and use it in GitHub Desktop.
Save benhamill/a7cd465f95ba85c9908b to your computer and use it in GitHub Desktop.

Revisions

  1. benhamill revised this gist Feb 25, 2016. 2 changed files with 22 additions and 13 deletions.
    13 changes: 9 additions & 4 deletions bash_shell.txt
    Original file line number Diff line number Diff line change
    @@ -1,7 +1,12 @@
    Last login: Wed Feb 24 22:38:23 on ttys004
    Last login: Thu Feb 25 00:02:32 on ttys004
    UALC02NJ0RCG3QR:~ bhamill$ bash --version
    GNU bash, version 4.3.42(1)-release (x86_64-apple-darwin14.5.0)
    Copyright (C) 2013 Free Software Foundation, Inc.
    License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>

    This is free software; you are free to change and redistribute it.
    There is NO WARRANTY, to the extent permitted by law.
    UALC02NJ0RCG3QR:~ bhamill$ cat ~/.bashrc
    source ~/.bash_profile
    UALC02NJ0RCG3QR:~ bhamill$ cat ~/.bash_profile
    export HI=hi

    alias ll='ls -la'
    @@ -12,6 +17,6 @@ function gcb() {
    UALC02NJ0RCG3QR:~ bhamill$ echo $HI
    hi
    UALC02NJ0RCG3QR:~ bhamill$ alias ll
    ll='ls -la'
    alias ll='ls -la'
    UALC02NJ0RCG3QR:~ bhamill$ gcb
    fatal: Not a git repository (or any of the parent directories): .git
    22 changes: 13 additions & 9 deletions inside_nvim.txt
    Original file line number Diff line number Diff line change
    @@ -1,17 +1,21 @@
    sh-3.2$ cat ~/.bashrc
    source ~/.bash_profile
    sh-3.2$ cat ~/.bash_profile
    bash-4.3$ bash --version
    GNU bash, version 4.3.42(1)-release (x86_64-apple-darwin14.5.0)
    Copyright (C) 2013 Free Software Foundation, Inc.
    License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>

    This is free software; you are free to change and redistribute it.
    There is NO WARRANTY, to the extent permitted by law.
    bash-4.3$ cat ~/.bashrc
    export HI=hi

    alias ll='ls -la'

    function gcb() {
    git branch | grep '^\*' | cut -c3-
    }
    sh-3.2$ echo $HI
    bash-4.3$ echo $HI
    hi
    sh-3.2$ alias ll
    sh: alias: ll: not found
    sh-3.2$ gcb
    sh: gcb: command not found
    sh-3.2$
    bash-4.3$ alias ll
    alias ll='ls -la'
    bash-4.3$ gcb
    fatal: Not a git repository (or any of the parent directories): .git
  2. benhamill revised this gist Feb 25, 2016. 2 changed files with 7 additions and 3 deletions.
    3 changes: 3 additions & 0 deletions bash_shell.txt
    Original file line number Diff line number Diff line change
    @@ -1,4 +1,7 @@
    Last login: Wed Feb 24 22:38:23 on ttys004
    UALC02NJ0RCG3QR:~ bhamill$ cat ~/.bashrc
    source ~/.bash_profile
    UALC02NJ0RCG3QR:~ bhamill$ cat ~/.bash_profile
    export HI=hi

    alias ll='ls -la'
    7 changes: 4 additions & 3 deletions inside_nvim.txt
    Original file line number Diff line number Diff line change
    @@ -1,4 +1,6 @@
    sh-3.2$ cat ~/.bashrc
    source ~/.bash_profile
    sh-3.2$ cat ~/.bash_profile
    export HI=hi

    alias ll='ls -la'
    @@ -8,9 +10,8 @@ function gcb() {
    }
    sh-3.2$ echo $HI
    hi
    sh-3.2$ ll
    sh: ll: command not found
    sh-3.2$ alias ll
    sh: alias: ll: not found
    sh-3.2$ gcb
    sh: gcb: command not found
    sh: gcb: command not found
    sh-3.2$
  3. benhamill created this gist Feb 25, 2016.
    14 changes: 14 additions & 0 deletions bash_shell.txt
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,14 @@
    UALC02NJ0RCG3QR:~ bhamill$ cat ~/.bashrc
    export HI=hi

    alias ll='ls -la'

    function gcb() {
    git branch | grep '^\*' | cut -c3-
    }
    UALC02NJ0RCG3QR:~ bhamill$ echo $HI
    hi
    UALC02NJ0RCG3QR:~ bhamill$ alias ll
    ll='ls -la'
    UALC02NJ0RCG3QR:~ bhamill$ gcb
    fatal: Not a git repository (or any of the parent directories): .git
    16 changes: 16 additions & 0 deletions inside_nvim.txt
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,16 @@
    sh-3.2$ cat ~/.bashrc
    export HI=hi

    alias ll='ls -la'

    function gcb() {
    git branch | grep '^\*' | cut -c3-
    }
    sh-3.2$ echo $HI
    hi
    sh-3.2$ ll
    sh: ll: command not found
    sh-3.2$ alias ll
    sh: alias: ll: not found
    sh-3.2$ gcb
    sh: gcb: command not found