/terminal

Quelques fichiers de configs et paquets utiles pour ton terminal !

Primary LanguageShell

✨ My terminal ✨

Update : 2022/04/01

Article Tech2Tech (in French) : ppmc.me/t2t-terminal

⚡️ Informations

Operating System : MacOS Monterey

Terminal Client : Tabby

Text Editor : Micro

📦️ Packages

  • ad : Create folders and files easily
  • atuin : Manage your commands history
  • bat : Better cat
  • btop : Better htop
  • cheat : Better man, all your cheatsheet in your terminal (Check PAPAMICA/cheatsheets)
  • dog : Better dig
  • direnv : Set up environment variables based on the folder
  • duf : Better df -hwith graphics (Thx @Lucroz94)
  • exa : Improving the ls command
  • fd : Boost the find command
  • fig : Popup with subcommands and options
  • fuck : Fuck! I missed my command !
  • navi : The manual of manuals
  • ncdu : Display your storage simply and graphically
  • oh-my-zsh : Making zsh pretty
  • power10k : Customize your command prompt to perfection
  • progress : Monitor the progress of multiple commands
  • ripgrep : Better grep
  • z : Get to your folders as quickly as possible
  • zsh : More intuitive than bash
  • zsh-autosuggestions : Like fish
  • zsh-syntax-highlighting : Like fish too

⚙️ Install script for Debian / Ubuntu server

bash -c "$(curl -s https://raw.githubusercontent.com/PAPAMICA/terminal/main/server_utils.sh)"

You can add a dynamic MOTD (with neofetch) with --motd:

curl -Ls https://raw.githubusercontent.com/PAPAMICA/terminal/main/server_utils.sh | bash -s -- --motd

You can apply all modifications to all users with --all-users:

curl -Ls https://raw.githubusercontent.com/PAPAMICA/terminal/main/server_utils.sh | bash -s -- --all-users

You can display all logs with --verbose:

curl -Ls https://raw.githubusercontent.com/PAPAMICA/terminal/main/server_utils.sh | bash -s -- --verbose

You can display help with --help:

curl -Ls https://raw.githubusercontent.com/PAPAMICA/terminal/main/server_utils.sh | bash -s -- --help

If you want an oneliner for motd, all-users and you don't have curl installed :

apt update && apt install -y curl && curl -Ls https://raw.githubusercontent.com/PAPAMICA/terminal/main/server_utils.sh | bash -s -- --motd --all-users

🔨 Debian environment

I work on MacOS, but sometimes I need to run some scripts in Debian directly.. So .. I have scripted that !

Requirements

  • VirtualBox
  • VBoxmanage
  • Create a VM
  • Redirect 2222 port to SSH
  • Docker (if you use temp option)

Commands

  • stop
  • list <snaps/vms>
  • rollback
  • restore <snap_name>
  • delete
  • temp