Skip to main content
Replaced UTF single quotes with regular single quotes ( author presumably uses non-English layout ); all-caps are evil
Source Link
HalosGhost
  • 4.9k
  • 10
  • 37
  • 42

If you want iex to ONLYonly work in one directory and NEVERnever anywhere else try this:

alias iex='[ $(pwd) = /path/to/special/dir ] && iex –S mix'

If you want iex to work differently in other directories try it like this:

alias iex='[ $(pwd) = /path/to/special/dir ] && iex –S mix || iex'

If you want iex to ONLY work in one directory and NEVER anywhere else try this:

alias iex='[ $(pwd) = /path/to/special/dir ] && iex –S mix'

If you want iex to work differently in other directories try it like this:

alias iex='[ $(pwd) = /path/to/special/dir ] && iex –S mix || iex'

If you want iex to only work in one directory and never anywhere else try this:

alias iex='[ $(pwd) = /path/to/special/dir ] && iex –S mix'

If you want iex to work differently in other directories try it like this:

alias iex='[ $(pwd) = /path/to/special/dir ] && iex –S mix || iex'
Replaced UTF single quotes with regular single quotes ( author presumably uses non-English layout )
Source Link

If you want iexiex to ONLY work in one directory and NEVER anywhere else try this:

alias iex=’[iex='[ $(pwd) = /path/to/special/dir ] && iex –S mix’mix'

If you want iexiex to work differently in other directories try it like this:

alias iex=’[iex='[ $(pwd) = /path/to/special/dir ] && iex –S mix || iex’iex'

If you want iex to ONLY work in one directory and NEVER anywhere else try this:

alias iex=’[ $(pwd) = /path/to/special/dir ] && iex –S mix’

If you want iex to work differently in other directories try it like this:

alias iex=’[ $(pwd) = /path/to/special/dir ] && iex –S mix || iex’

If you want iex to ONLY work in one directory and NEVER anywhere else try this:

alias iex='[ $(pwd) = /path/to/special/dir ] && iex –S mix'

If you want iex to work differently in other directories try it like this:

alias iex='[ $(pwd) = /path/to/special/dir ] && iex –S mix || iex'
Source Link
bashBedlam
  • 1.1k
  • 7
  • 6

If you want iex to ONLY work in one directory and NEVER anywhere else try this:

alias iex=’[ $(pwd) = /path/to/special/dir ] && iex –S mix’

If you want iex to work differently in other directories try it like this:

alias iex=’[ $(pwd) = /path/to/special/dir ] && iex –S mix || iex’