Skip to content

Instantly share code, notes, and snippets.

@nicolasramy
Last active August 19, 2020 11:55
Show Gist options
  • Select an option

  • Save nicolasramy/84b2f85f1c11d7da8880 to your computer and use it in GitHub Desktop.

Select an option

Save nicolasramy/84b2f85f1c11d7da8880 to your computer and use it in GitHub Desktop.

Revisions

  1. nicolasramy revised this gist Jan 15, 2016. No changes.
  2. nicolasramy revised this gist Jan 15, 2016. No changes.
  3. nicolasramy revised this gist Jan 15, 2016. No changes.
  4. nicolasramy created this gist Jan 15, 2016.
    14 changes: 14 additions & 0 deletions bad-joke.sh
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,14 @@
    #
    #
    fake-cd() {
    echo "bash: cd: $1: No such file or directory"
    }

    #
    #
    fake-ls() {
    echo "ls: cannot access $1: No such file or directory"
    }

    alias cd=fake-cd
    alias ls=fake-ls