Upgrade to Pro — share decks privately, control downloads, hide ads and more …

ターミナルtips

Sponsored · Your Podcast. Everywhere. Effortlessly. Share. Educate. Inspire. Entertain. You do you. We'll handle the rest.

 ターミナルtips

Avatar for ゆうきゃん

ゆうきゃん

February 20, 2021
Tweet

More Decks by ゆうきゃん

Other Decks in Programming

Transcript

  1. alias # ௕͍ίϚϯυͳͲʹผ໊Λ෇͚Δ $ alias ll='ls -l' $ alias la='ls

    -al' $ alias l1='ls -1' $ alias dc='docker-compose' # ~/.zshrc ౳ʹॻ͍͓ͯ͘ͱྑ͍
  2. ˈ_ # γΣϧͷઃఆΛ൓өͤ͞Δ $ mkdir -p ./foo/bar/hoge $ cd $_

    # ্هͷίϚϯυͱಉ͡ $ mkdir -p ./foo/bar/hoge $ cd ./foo/bar/hoge
  3. ϑΝΠϧΛۭʹ͢Δ $ > sample.txt control + c Ͱڧ੍ऴྃ͢Δ (จࣈೖྗ΋Ͱ͖Δ) #

    ্هͷίϚϯυͱಉ͡Ͱ͢ $ rm -f sample.txt $ touch sample.txt
  4. exa ls ͷ্Ґޓ׵ɺGitͷεςʔλε΋දࣔ $ exa --time-style=long-iso -g $ exa --time-style=long-iso

    -hgl --git $ exa --time-style=long-iso -ahgl --git $ exa -1 $ exa -T --git-ignore Ϛδݟ΍͍͢
  5. skim fuzzy fi nder(fzf, peco, percol, fzy, hstr) $ sk

    Ϧετ͔ΒҰக͢ΔจࣈΛߜΓࠐΈ͢Δ (͍͋·͍ݕࡧతͳ)