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
23k
会社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
370
暴走のウホーレン 〜想いってのはvimrcにしないと伝わらないんだぜ〜 / iosdc_japan_2024
uhooi
1
390
SwiftLintのカスタムルールを作るための正規表現入門 / swiftlint_regex
uhooi
1
89
最古の関数型言語「Lisp」ことはじめ / lisp_in_kamiyama
uhooi
1
250
クソアプリを作ってみた💩 / kusojaku
uhooi
0
550
Apple提供アプリのナビゲーションバーアイテムクイズ / 20231110-hig
uhooi
2
240
個人開発のiOSアプリでUI/UXを標準に寄せてみた / 20230919_orochi
uhooi
0
840
"What's new in Swift"の要約 / swift_5_9_summary
uhooi
2
860
Neovimで好きなプラグイン5選 / my_5_favorite_neovim_plugins
uhooi
0
1.3k
Other Decks in Programming
See All in Programming
DevFest Tokyo 2025 - Flutter のアプリアーキテクチャ現在地点
wasabeef
5
900
KMP와 kotlinx.rpc로 서버와 클라이언트 동기화
kwakeuijin
0
140
htmxって知っていますか?次世代のHTML
hiro_ghap1
0
330
良いユニットテストを書こう
mototakatsu
5
2k
tidymodelsによるtidyな生存時間解析 / Japan.R2024
dropout009
1
770
menu基盤チームによるGoogle Cloudの活用事例~Application Integration, Cloud Tasks編~
yoshifumi_ishikura
0
110
rails statsで大解剖 🔍 “B/43流” のRailsの育て方を歴史とともに振り返ります
shoheimitani
2
930
Keeping it Ruby: Why Your Product Needs a Ruby SDK - RubyWorld 2024
envek
0
180
PHPで作るWebSocketサーバー ~リアクティブなアプリケーションを知るために~ / WebSocket Server in PHP - To know reactive applications
seike460
PRO
2
190
「とりあえず動く」コードはよい、「読みやすい」コードはもっとよい / Code that 'just works' is good, but code that is 'readable' is even better.
mkmk884
3
140
Jakarta EE meets AI
ivargrimstad
0
240
数十万行のプロジェクトを Scala 2から3に完全移行した
xuwei_k
0
270
Featured
See All Featured
Automating Front-end Workflow
addyosmani
1366
200k
We Have a Design System, Now What?
morganepeng
51
7.3k
Refactoring Trust on Your Teams (GOTO; Chicago 2020)
rmw
32
2.7k
Improving Core Web Vitals using Speculation Rules API
sergeychernyshev
0
97
Making the Leap to Tech Lead
cromwellryan
133
9k
Templates, Plugins, & Blocks: Oh My! Creating the theme that thinks of everything
marktimemedia
28
2.1k
Embracing the Ebb and Flow
colly
84
4.5k
The Invisible Side of Design
smashingmag
298
50k
Visualizing Your Data: Incorporating Mongo into Loggly Infrastructure
mongodb
44
9.3k
"I'm Feeling Lucky" - Building Great Search Experiences for Today's Users (#IAC19)
danielanewman
226
22k
The Myth of the Modular Monolith - Day 2 Keynote - Rails World 2024
eileencodes
17
2.3k
YesSQL, Process and Tooling at Scale
rocio
169
14k
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 ͍͍ͧ
ʙҎ্ʙ Α͍͓Λ🎍