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
WTM IWD 2024 - Friendly shell environment setup
Search
Karn Wong
March 16, 2024
Technology
0
30
WTM IWD 2024 - Friendly shell environment setup
Karn Wong
March 16, 2024
Tweet
Share
More Decks by Karn Wong
See All by Karn Wong
Technologista 2024 - Rust for Data - What Works and What Doesn't
kahnwong
0
84
HashiCorp User Group Thailand Meetup - Self-hosting Kubernetes at Home with Terraform
kahnwong
0
61
HashiCorp User Hub Thailand #2 - Simplify Proxmox VM Management with Terraform
kahnwong
0
56
Python Developer Day Thailand 2024 - How to Bootstrap a Python Project
kahnwong
0
100
GitHub Universe After Party Thailand 2023 - Faster deployments with multi-stage build caching
kahnwong
0
30
Database Query Optimization
kahnwong
0
18
Grill the data 2022 - The unsung hero behind Bestimate: data platform
kahnwong
0
31
Intro to spatial data
kahnwong
0
23
Other Decks in Technology
See All in Technology
LINEスキマニにおけるフロントエンド開発
lycorptech_jp
PRO
0
330
Amazon Kendra GenAI Index 登場でどう変わる? 評価から学ぶ最適なRAG構成
naoki_0531
0
100
あの日俺達が夢見たサーバレスアーキテクチャ/the-serverless-architecture-we-dreamed-of
tomoki10
0
420
LINEヤフーのフロントエンド組織・体制の紹介【24年12月】
lycorp_recruit_jp
0
530
ガバメントクラウドのセキュリティ対策事例について
fujisawaryohei
0
530
大幅アップデートされたRagas v0.2をキャッチアップ
os1ma
2
520
Fanstaの1年を大解剖! 一人SREはどこまでできるのか!?
syossan27
2
160
Snykで始めるセキュリティ担当者とSREと開発者が楽になる脆弱性対応 / Getting started with Snyk Vulnerability Response
yamaguchitk333
2
180
NW-JAWS #14 re:Invent 2024(予選落ち含)で 発表された推しアップデートについて
nagisa53
0
250
Wantedly での Datadog 活用事例
bgpat
1
410
レンジャーシステムズ | 会社紹介(採用ピッチ)
rssytems
0
150
KnowledgeBaseDocuments APIでベクトルインデックス管理を自動化する
iidaxs
1
250
Featured
See All Featured
What’s in a name? Adding method to the madness
productmarketing
PRO
22
3.2k
VelocityConf: Rendering Performance Case Studies
addyosmani
326
24k
Design and Strategy: How to Deal with People Who Don’t "Get" Design
morganepeng
127
18k
The Art of Delivering Value - GDevCon NA Keynote
reverentgeek
8
1.2k
Let's Do A Bunch of Simple Stuff to Make Websites Faster
chriscoyier
507
140k
Automating Front-end Workflow
addyosmani
1366
200k
The Success of Rails: Ensuring Growth for the Next 100 Years
eileencodes
44
6.9k
Build The Right Thing And Hit Your Dates
maggiecrowley
33
2.4k
YesSQL, Process and Tooling at Scale
rocio
169
14k
Building Adaptive Systems
keathley
38
2.3k
Unsuck your backbone
ammeep
669
57k
Agile that works and the tools we love
rasmusluckow
328
21k
Transcript
Friendly shell environment setup Karn Wong Platform Engineer, Data Cafe
Thailand
A CLI nerd who loves a blinking cursor too much
Karn Wong Platform Engineer, Data Cafe Thailand https://karnwong.me
Current issues with default shell config 1. Lack of colors
2. Everything looks the same 3. Not obvious whether there is a typo or an executable doesn’t exist 4. Important information are not displayed
Bland colors, not anymore!
ls -> eza
ls -lah -> eza
cat -> bat
echo
Executable doesn’t exist
Chained command
grep
df -> duf
ps -> procs
grep -> rg
grep - for files -> fd
Markdown -> glow
git diff
And you can click in terminals!
vim -> nvchad
tmux -> zellij
Did I mention autocomplete?
Autocomplete - executables
Autocomplete - docker
Autocomplete - docker argument
Autocomplete - ssh
Autocomplete - scp
Quality of life features
Shell - autocomplete from history
Jump between directories -> zoxide
Command cheat sheet -> tldr
JSON -> fx
Important information should be displayed
Current folder
Last command’s runtime
Last command’s status
Current GCP account & project
Current AWS account & region
Current runtime version & venv
Git branch & status
Current kubernetes context & namespace
Active username & hostname (over SSH)
Words from users
Can I copy your setup?”
https://github.com/kahnwong/vm-init
None
Further actions 1. Define commonly used tools 2. Implement setup
script for teams