pseudowire

調べたことを書き残す

homebrew, eval, source

homebrew

  • homebrewを入れた
  • ここで入れたいアプリがhomebrewでインスト可能か確認できる
  • チートシート的に使いそうなコマンドを列挙
brew install --cask formula
brew search text
brew list

brew update
brew upgrade (formula|無しですべて) #更新があるパッケージを再ビルドする

brew bundle dump --global _force
brew bundle --global 
brew bundle cleanup --global --force

ref

qiita.com kunolog.com qiita.com


homebrewインストール直後のメッセージ

  • パスを通すようガイドしてくれる
  • ここでふと、evalとsourceの違いってなんだろう、と気になり始めた
==> Next steps:
- Run these two commands in your terminal to add Homebrew to your PATH:
    echo 'eval "$(/opt/homebrew/bin/brew shellenv)"' >> /Users/yuki/.zprofile
    eval "$(/opt/homebrew/bin/brew shellenv)"

evalとsourceの違い

  • 細かい違いはあるが、やろうとしていることに大きな違いはないらしい
There are no differences between the two ways.

There is only one note: eval concatenated all of its arguments, 
which is then run as a single command. 
source reads the contents of a file and executes them. 
eval can only build commands from its arguments, not stdin. 

ref

unix.stackexchange.com

マークダウン記法:番号なしリストの注意点

はじめに

  • ブックマークが乱雑になってきている
  • 大体、ブックマークしても読まない or 内容忘れてる
  • 読んだ記事は、サクッと文章にしたらいいんじゃないだろうか
  • あとMac買ったし、慣熟飛行がてらブログ書いてみる

マークダウンについての気づき

- aaa
- aaa
1. aaa
1. aaa
  • aaa
  • aaa
  • aaa
  • aaa

このように、番号なしリストの直後に番号付きリストを書いても、全て番号なしリストになってしまう。 なので、なんか適当な文章を挟む必要がある。

- aaa
- aaa

なんか適当な文章

1. あああ
1. あああ
  • aaa
  • aaa

なんか適当な文章

  1. あああ
  2. あああ

ref

qiita.com

qiita.com