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
最古の関数型言語「Lisp」ことはじめ / lisp_in_kamiyama
uhooi
1
190
クソアプリを作ってみた💩 / kusojaku
uhooi
0
480
Apple提供アプリのナビゲーションバーアイテムクイズ / 20231110-hig
uhooi
2
190
個人開発のiOSアプリでUI/UXを標準に寄せてみた / 20230919_orochi
uhooi
0
720
"What's new in Swift"の要約 / swift_5_9_summary
uhooi
2
770
Neovimで好きなプラグイン5選 / my_5_favorite_neovim_plugins
uhooi
0
1.1k
AndroidアプリエンジニアがSwiftを読むときのギモン / swift_question
uhooi
1
900
SwiftPMのPlugin入門 / introduction_to_swiftpm_plugin
uhooi
3
650
新規アプリの単体テスト戦略 / unit_tests_strategy_of_new_app
uhooi
3
770
Other Decks in Programming
See All in Programming
継続的な活動で築く地方エンジニアの道
myamashii
2
360
さきがけから振り返るアーキテクチャ刷新 / Reflecting on the Architectural Renewal from the Vanguard
nrslib
2
780
Rustのweb開発を助ける 便利なツール紹介
yuki0418
1
190
ピグパーティにおけるMongoDB CommunityバージョンからAtlasへの移行事例
10969hotaka
0
130
Javaの現状2024夏 / Java current status 2024 summer
kishida
4
1.4k
AWS CDKにおける「再利用性」を考える / aws-cdk-reusability
gotok365
6
1.3k
Composing an API the *right* way (Droidcon Berlin 2024)
zsmb
1
450
Webエディタライブラリ 「CodeMirror」から学ぶ Webアプリ開発のテクニック
ryosukeigarashi
0
250
feature環境をGitHub ActionsとCloudFormationでいい感じに管理する
nealle
2
310
Introduction of Happy Eyeballs Version 2 (RFC8305) to the Socket library
coe401_
1
220
Findy - エンジニア向け会社紹介 / Findy Letter for Engineers
findyinc
2
81k
SDCon2024: Enabling DevOps and Team Topologies thru architecture: architecting for fast flow
cer
PRO
0
780
Featured
See All Featured
Building a Scalable Design System with Sketch
lauravandoore
458
32k
Let's Do A Bunch of Simple Stuff to Make Websites Faster
chriscoyier
502
140k
"I'm Feeling Lucky" - Building Great Search Experiences for Today's Users (#IAC19)
danielanewman
224
21k
A better future with KSS
kneath
231
17k
5 minutes of I Can Smell Your CMS
philhawksworth
200
19k
How to name files
jennybc
67
96k
The Art of Programming - Codeland 2020
erikaheidi
48
13k
Fashionably flexible responsive web design (full day workshop)
malarkey
399
65k
Gamification - CAS2011
davidbonilla
78
4.9k
Templates, Plugins, & Blocks: Oh My! Creating the theme that thinks of everything
marktimemedia
23
1.9k
Being A Developer After 40
akosma
72
580k
Designing for humans not robots
tammielis
247
25k
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 ͍͍ͧ
ʙҎ্ʙ Α͍͓Λ🎍