Skip to content

Instantly share code, notes, and snippets.

@rch850
Last active March 18, 2021 07:29
Show Gist options
  • Save rch850/ee371f8ecf0c5bceada06baf0111d4e0 to your computer and use it in GitHub Desktop.
Save rch850/ee371f8ecf0c5bceada06baf0111d4e0 to your computer and use it in GitHub Desktop.

Export environment variable

# bash
export AWS_PROFILE=myproj

# fish
set -x AWS_PROFILE myproj

Process substitution

# bash
diff <(prettier hoge) <(prettier fuga)

# fish (https://fishshell.com/docs/current/cmds/psub.html)
diff (prettier hoge | psub) (prettier fuga | psub)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment