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
暴走のウホーレン 〜想いってのはvimrcにしないと伝わらないんだぜ〜 / iosdc_japan_2024
uhooi
1
350
SwiftLintのカスタムルールを作るための正規表現入門 / swiftlint_regex
uhooi
1
83
最古の関数型言語「Lisp」ことはじめ / lisp_in_kamiyama
uhooi
1
240
クソアプリを作ってみた💩 / kusojaku
uhooi
0
530
Apple提供アプリのナビゲーションバーアイテムクイズ / 20231110-hig
uhooi
2
230
個人開発のiOSアプリでUI/UXを標準に寄せてみた / 20230919_orochi
uhooi
0
810
"What's new in Swift"の要約 / swift_5_9_summary
uhooi
2
850
Neovimで好きなプラグイン5選 / my_5_favorite_neovim_plugins
uhooi
0
1.2k
AndroidアプリエンジニアがSwiftを読むときのギモン / swift_question
uhooi
1
950
Other Decks in Programming
See All in Programming
3rd party scriptでもReactを使いたい! Preact + Reactのハイブリッド開発
righttouch
PRO
1
600
watsonx.ai Dojo #4 生成AIを使ったアプリ開発、応用編
oniak3ibm
PRO
1
100
ヤプリ新卒SREの オンボーディング
masaki12
0
130
OnlineTestConf: Test Automation Friend or Foe
maaretp
0
110
subpath importsで始めるモック生活
10tera
0
300
ふかぼれ!CSSセレクターモジュール / Fukabore! CSS Selectors Module
petamoriken
0
150
Outline View in SwiftUI
1024jp
1
330
Arm移行タイムアタック
qnighy
0
320
3 Effective Rules for Using Signals in Angular
manfredsteyer
PRO
0
100
Macとオーディオ再生 2024/11/02
yusukeito
0
370
Streams APIとTCPフロー制御 / Web Streams API and TCP flow control
tasshi
2
350
OSSで起業してもうすぐ10年 / Open Source Conference 2024 Shimane
furukawayasuto
0
100
Featured
See All Featured
GitHub's CSS Performance
jonrohan
1030
460k
Mobile First: as difficult as doing things right
swwweet
222
8.9k
StorybookのUI Testing Handbookを読んだ
zakiyama
27
5.3k
A Tale of Four Properties
chriscoyier
156
23k
XXLCSS - How to scale CSS and keep your sanity
sugarenia
246
1.3M
Designing for Performance
lara
604
68k
Put a Button on it: Removing Barriers to Going Fast.
kastner
59
3.5k
Evolution of real-time – Irina Nazarova, EuRuKo, 2024
irinanazarova
4
370
Ruby is Unlike a Banana
tanoku
97
11k
Refactoring Trust on Your Teams (GOTO; Chicago 2020)
rmw
31
2.7k
[RailsConf 2023 Opening Keynote] The Magic of Rails
eileencodes
28
9.1k
The Straight Up "How To Draw Better" Workshop
denniskardys
232
140k
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 ͍͍ͧ
ʙҎ্ʙ Α͍͓Λ🎍