LoginSignup
15
13

More than 5 years have passed since last update.

zshで相対パスをさくっと絶対パスに変換する方法

Last updated at Posted at 2014-10-14

例えばこんな状況で

$ pwd
/private/tmp/hoge/fuga/piyo
$ ls ../test.txt
../test.txt

test.txtの絶対パスがさくっと欲しいよー>< という場合、相対パスの後ろに(:a)をつけると絶対パスが取れる

$ ls ../test.txt(:a)
/private/tmp/hoge/fuga/test.txt

タブで補完もしてくれる

$ ls ../test.txt(:a)
### ↑この状態でtab押すとこうなる↓
$ ls /private/tmp/hoge/fuga/test.txt

くそ便利。

詳細はこちら

15
13
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
15
13