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
17
23k
会社PCでrm -rf ~した話 / rm_rf_choron
TechTalk #89
uhooi
December 12, 2023
Tweet
Share
More Decks by uhooi
See All by uhooi
クソアプリを作ってみた💩 / kusojaku
uhooi
0
450
Apple提供アプリのナビゲーションバーアイテムクイズ / 20231110-hig
uhooi
2
170
個人開発のiOSアプリでUI/UXを標準に寄せてみた / 20230919_orochi
uhooi
0
680
"What's new in Swift"の要約 / swift_5_9_summary
uhooi
2
700
Neovimで好きなプラグイン5選 / my_5_favorite_neovim_plugins
uhooi
0
1k
AndroidアプリエンジニアがSwiftを読むときのギモン / swift_question
uhooi
1
680
SwiftPMのPlugin入門 / introduction_to_swiftpm_plugin
uhooi
3
570
新規アプリの単体テスト戦略 / unit_tests_strategy_of_new_app
uhooi
3
740
リモートワークで楽しむコツ / remote_work_is_fun
uhooi
0
350
Other Decks in Programming
See All in Programming
酒飲んでたらテックリードになった話
spbaya0141
0
210
Long journey of Ruby standard library RubyKaigi 2024
andpad
2
380
Amazon Aurora Serverless v2が意外と高かった話と、AWS Database Migration Serviceの話
satoshi256kbyte
1
110
Upgrading Legacy to the Latest PHP Version
afilina
PRO
0
110
哲学史とモデリング
tanakahisateru
3
440
Porting mruby/c for the SNES (Super Famicom) - RubyKaigi 2024
gedorinku
0
940
Using "modern" Ruby to build a better, faster Homebrew
mikemcquaid
2
310
TypeScriptでもLLMアプリケーション開発 / LLM Application In Typescript
rkaga
5
1.4k
WebGLで始める コンピュータグラフィックス入門
heller77
0
390
JavaScript Closure
asoluka
0
2k
From LALR to IELR: A Lrama's Next Step
junk0612
0
100
TypeScriptの型とパフォーマンス (TSKaigi 2024)
ypresto
15
5.3k
Featured
See All Featured
Faster Mobile Websites
deanohume
300
30k
GraphQLの誤解/rethinking-graphql
sonatard
56
9.3k
How GitHub Uses GitHub to Build GitHub
holman
468
290k
WebSockets: Embracing the real-time Web
robhawkes
59
7k
RailsConf & Balkan Ruby 2019: The Past, Present, and Future of Rails at GitHub
eileencodes
126
32k
RailsConf 2023
tenderlove
9
590
Stop Working from a Prison Cell
hatefulcrawdad
266
19k
Art, The Web, and Tiny UX
lynnandtonic
290
19k
Building Flexible Design Systems
yeseniaperezcruz
320
37k
Building Applications with DynamoDB
mza
88
5.7k
Facilitating Awesome Meetings
lara
43
5.6k
The Brand Is Dead. Long Live the Brand.
mthomps
49
31k
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 ͍͍ͧ
ʙҎ্ʙ Α͍͓Λ🎍