Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
会社PCでrm -rf ~した話 / rm_rf_choron
Search
uhooi
December 12, 2023
Programming
18
24k
会社PCでrm -rf ~した話 / rm_rf_choron
TechTalk #89
uhooi
December 12, 2023
Tweet
Share
More Decks by uhooi
See All by uhooi
Develop iOS apps with Neovim / vimconf_2024
uhooi
1
470
暴走のウホーレン 〜想いってのはvimrcにしないと伝わらないんだぜ〜 / iosdc_japan_2024
uhooi
1
430
SwiftLintのカスタムルールを作るための正規表現入門 / swiftlint_regex
uhooi
1
110
最古の関数型言語「Lisp」ことはじめ / lisp_in_kamiyama
uhooi
1
280
クソアプリを作ってみた💩 / kusojaku
uhooi
0
570
Apple提供アプリのナビゲーションバーアイテムクイズ / 20231110-hig
uhooi
2
260
個人開発のiOSアプリでUI/UXを標準に寄せてみた / 20230919_orochi
uhooi
0
870
"What's new in Swift"の要約 / swift_5_9_summary
uhooi
2
880
Neovimで好きなプラグイン5選 / my_5_favorite_neovim_plugins
uhooi
0
1.3k
Other Decks in Programming
See All in Programming
2024年のkintone API振り返りと2025年 / kintone API look back in 2024
tasshi
0
220
Grafana Cloudとソラカメ
devoc
0
170
一休.com のログイン体験を支える技術 〜Web Components x Vue.js 活用事例と最適化について〜
atsumim
0
470
仕様変更に耐えるための"今の"DRY原則を考える / Rethinking the "Don't repeat yourself" for resilience to specification changes
mkmk884
0
160
CI改善もDatadogとともに
taumu
0
120
Djangoアプリケーション 運用のリアル 〜問題発生から可視化、最適化への道〜 #pyconshizu
kashewnuts
1
250
ファインディLT_ポケモン対戦の定量的分析
fufufukakaka
0
710
バックエンドのためのアプリ内課金入門 (サブスク編)
qnighy
8
1.8k
JavaScriptツール群「UnJS」を5分で一気に駆け巡る!
k1tikurisu
9
1.8k
社内フレームワークとその依存性解決 / in-house framework and its dependency management
vvakame
1
560
pylint custom ruleで始めるレビュー自動化
shogoujiie
0
120
color-scheme: light dark; を完全に理解する
uhyo
3
310
Featured
See All Featured
Being A Developer After 40
akosma
89
590k
Large-scale JavaScript Application Architecture
addyosmani
511
110k
Creating an realtime collaboration tool: Agile Flush - .NET Oxford
marcduiker
27
1.9k
Put a Button on it: Removing Barriers to Going Fast.
kastner
60
3.7k
Reflections from 52 weeks, 52 projects
jeffersonlam
348
20k
Refactoring Trust on Your Teams (GOTO; Chicago 2020)
rmw
33
2.8k
Bash Introduction
62gerente
611
210k
How To Stay Up To Date on Web Technology
chriscoyier
790
250k
The Art of Delivering Value - GDevCon NA Keynote
reverentgeek
10
1.3k
Building a Scalable Design System with Sketch
lauravandoore
461
33k
Bootstrapping a Software Product
garrettdimon
PRO
306
110k
Learning to Love Humans: Emotional Interface Design
aarron
273
40k
Transcript
2023/12/12(Ր) TechTalk #89 uhooi / ޱ ਅԝ ձࣾ PC Ͱ
rm -rf ~ ͨ͠
͘͡ • આ໌ • ܦҢ • Ұ࣌తͳରԠʢαϧϕʔδʣ • ࠶ൃࢭࡦ •
·ͱΊ
આ໌
ࢲձࣾ PC Ͱ rm -rf ~ ͠·ͨ͠ ҹ༻
rm -rf ~ আ͢Δ ࠶ؼ͔ͭ ڧ੍తʹ Ϣʔβʔ σΟϨΫτϦΛ
ܦҢ
ͳΜ͔͊…ΧϨϯτσΟϨΫτϦ ʹ ~ ͕Ͱ͖ͪΌͬͯ͐…ফͦ͏ͱ ࢥͬͨΒ͊…
ϢʔβʔσΟϨΫτϦ ͕ਧ͖ඈΜͰ·ͨ͠🌬
ྲྀΕΏ͘আϩάΛݟͨ ॠؒɺޫͷ͞Ͱ Ctrl + C Λ ԡͨ͠ϫΠ Ctrl + C:
ίϚϯυΛڧ੍ऴྃ͢Δ
حతʹඃΛ ࠷খݶʹ͑ΒΕͨ
ͪͳΈʹɺਖ਼͘͠ rm -rf ~ Ͱͳ͘ rm -rf ./~
Ұ࣌తͳରԠʢαϧϕʔδʣ
શʹআ͞ΕͨϑΝΠϧ ͷαϧϕʔδෆՄೳ😇
ಉ͡ϑΝΠϧΛ৽ͨ ʹੜ͢Δ͔͠ͳ͍
ϢʔβʔσΟϨΫτϦͷओͳத • Ωϟογϡɹˡͳ͍ • ઃఆϑΝΠϧɹˡͭΒ͍͚Ͳக໋ইͰͳ͍ • ɹ←̵̶̳͈͊͆ͤ́̓͘;̻̿͜͡
Ωϟογϡ • جຊతʹͳ͚Εࣗಈੜ͞ΕΔͷͰɺؾʹ͠ͳ͍͍ͯ͘
ઃఆϑΝΠϧ • dot fi les Λ GitHub ্͍͛ͯͨͷͰɺͦΕΛೖΕ͢ͷΈ • https://github.com/uhooi/dot
fi lesɹˡ🌟͍ͩ͘͞ • Homebrew Ͱཧ͍ͯͨ͠ CLI πʔϧɺݸਓ PC Ͱ brew bundle dump Λ࣮ߦ͠ɺձࣾ PC Ͱ brew bundle Λ࣮ߦͯ͠ೖ Εͨ͠
ΞϓϦέʔγϣϯϑΥϧμͳͲ • حతʹੜ͖ͬͨͷͰಛʹԿ͍ͯ͠ͳ͍ • ফ͍͑ͯͨΒ͔ͳΓͭΒ͔ͬͨ
࠶ൃࢭࡦ
trash-cli
ʮtrash-cliʯͱʁ • ϑΝΠϧσΟϨΫτϦΛΰϛശʢ~/.local/share/Trash/files/ʣҠಈ͢Δ CLI πʔϧ • ̑ͭͷίϚϯυ͕༻ҙ͞Ε͍ͯΔ • trash-put: ϑΝΠϧΛΰϛശೖΕΔ
• trash-empty: ΰϛശΛۭʹ͢Δ • trash-list: ΰϛശͷதΛݟΔ • trash-restore: ϑΝΠϧΛΰϛശ͔Βग़͢ • trash-rm: ϑΝΠϧΛΰϛശ͔Βআ͢Δ
·ͣͱʹ͔͘ brew install trash-cli
alias rm='trash-put' Ͱɺআ࣌ʹΰϛശೖΕ ΔΑ͏ʹ͢Ε͓͚ͬʔ🙆 https://github.com/uhooi/dot fi les/commit/05c3b569389b3ccef4abb91f41a2ba5755f98ede
ສ͕Ұ rm -rf ~ ͯ͠ trash-restore ~ Ͱ ෮ݩͰ͖Δʢͣʣ
͋ͱఆظతʹ trash-list → trash-empty Λ࣮ߦͯ͠ ༰ྔΛۭ͚Δ
ଞͷ࠶ൃࢭࡦ •alias rm='rm -i' • ຊʹআ͢Δ͔֬ೝ͞ΕΔ • Finderʢm a cOSʣΤΫεϓϩʔϥʢWindowsʣܦ༝Ͱআ͢Δ
• ίϚϯυͰআ͠ͳ͍
·ͱΊ
·ͱΊ • rm ίϚϯυΛ͏ͳ • ઃఆϑΝΠϧΛ Git ཧ͢Δͷ͍͍ͧ • tr
a sh-cli ͍͍ͧ
ʙҎ্ʙ Α͍͓Λ🎍