Skip to content

Latest commit

 

History

497 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Checks

Logo

CLIDotfilesExternal ToolsWorkspace Configuration

About

This is a personal project containing everything I use on a daily basis and how I set up my machine. It has aliases, functions, CLI, workspace configuration, applications' settings, and more.

CLI

Demo

This is the core of Sphynx. The command-line interface is used to automate boring/repetitive tasks and helps me manage the other parts of this project.

e.g.

$ sx docker logs
$ sx android device --connect
$ sx system clear-trash

Most commands use the fuzzy finder to provide a better experience with an interactive menu + fuzzy searching.

If you want to give the CLI a try, you can use Homebrew or Linuxbrew to install it.

brew install hpedrorodrigues/tools/sphynx

Dotfiles

All dotfiles are inside the dotfiles module. It has common aliases, functions, and configuration files that I use daily.

Shell startup performance

zsh

♪ sx shell benchmark zsh
ProductName:		macOS
ProductVersion:		26.6.1
BuildVersion:		25G76

> Hyperfine

Benchmark 1: zsh -i -c exit
  Time (mean ± σ):      80.3 ms ±   2.4 ms    [User: 40.5 ms, System: 29.8 ms]
  Range (min … max):    78.2 ms …  89.7 ms    36 runs

> Bench

benchmarking zsh -i -c exit
time                 84.04 ms   (80.66 ms .. 86.94 ms)
                     0.998 R²   (0.996 R² .. 1.000 R²)
mean                 81.79 ms   (81.07 ms .. 83.03 ms)
std dev              1.511 ms   (473.3 μs .. 2.179 ms)

> Time

/usr/bin/time zsh -i -c exit (5x)
        0.08 real         0.04 user         0.03 sys
        0.09 real         0.04 user         0.03 sys
        0.08 real         0.04 user         0.03 sys
        0.08 real         0.03 user         0.03 sys
        0.07 real         0.03 user         0.03 sys

bash

♪ sx shell benchmark bash
ProductName:		macOS
ProductVersion:		26.6.1
BuildVersion:		25G76

> Hyperfine

Benchmark 1: bash -i -c exit
  Time (mean ± σ):      88.3 ms ±   1.7 ms    [User: 44.2 ms, System: 33.9 ms]
  Range (min … max):    85.9 ms …  94.1 ms    33 runs

> Bench

benchmarking bash -i -c exit
time                 91.66 ms   (88.18 ms .. 98.71 ms)
                     0.991 R²   (0.977 R² .. 1.000 R²)
mean                 89.75 ms   (88.54 ms .. 94.14 ms)
std dev              3.458 ms   (676.6 μs .. 5.720 ms)

> Time

/usr/bin/time bash -i -c exit (5x)
        0.08 real         0.04 user         0.03 sys
        0.08 real         0.04 user         0.03 sys
        0.08 real         0.04 user         0.03 sys
        0.08 real         0.04 user         0.03 sys
        0.08 real         0.04 user         0.03 sys

External tools

External tools are tools that you don't want to install on your machine but you'd like to use them.

They are basically shell functions calling Docker behind the scenes. Every function runs a published image, either one under ghcr.io/hpedrorodrigues or a vendor image (e.g. Kafka).

Workspace configuration

I use Ansible to configure my machine. It automates tedious tasks installing packages and applications that I use almost daily.

About

There is no place like ~/

Topics

Resources

Stars

21 stars

Watchers

0 watching

Forks

Releases

Used by

Contributors

Languages