This repository contains some of my personal configuration files that I use to make my work more efficient and personalized.
It uses alias and function to perform the required tasks.
Note
Configurations work well with macOS using Zsh customized with Oh My Zsh framework
- Change directory layer depth by number (1 to 4)
- Commit changes to local and remote repositories with one command
- Show the working branch of all target repositories with one command
- Pull changes on all target repositories with one command
- Show statuses on all target repositories with one command
- Highlight
catandkubectlcommand output - Back up data from source to target with one command
📦dotfiles
┣ 📂.zsh
┃ ┣ 📜aliases.zsh
┃ ┗ 📜functions.zsh
┣ 📂assets
┃ ┗ 📜zshref.png
┣ 📜.zshrc
┣ 📜LICENSE
┗ 📜README.md
- Git
- Pygments
- Rsync
- Nerd Fonts of your choice
- kubecolor
- Add
.zshdirectory to your home directory. - Reference
aliases.zshandfunctions.zshto your.zshrcor.zprofile. Referencing aliases and functions - Restart terminal.
Use ..<1 to 4> to move up the directory hierarchy:
admin@MacBook-Pro ~ % ..2
Use launch "<commit message>" to commit changes directly to local and remote repository:
admin@MacBook-Pro ~ % launch "Some commit message"
Use branch to show the working branch of all local child repositories:
# Go to parent directory admin@MacBook-Pro ~ % branch
Use tow to pull changes on all local child repositories:
# Go to parent directory admin@MacBook-Pro ~ % tow
Use status to check the status of all local child repositories:
# Go to parent directory admin@MacBook-Pro ~ % status
Use ccat <filename> to impose syntax highlighting on cat command output:
admin@MacBook-Pro ~ % ccat my-config.yml
Caution
This is a one-way (source to target) data backup. Any data that is deleted from source will be deleted on target. dotfiles are ignored.
- Open
aliases.zshand look foralias backup=.... - Update the source path (
/PATH/TO/SOURCE-VOLUME/) to the directory or volume that is to be backed up. - Update the target path (
/PATH/TO/TARGET-VOLUME) to the directory or volume where the backup is to be stored - Save the changes and restart the terminal.
admin@MacBook-Pro ~ % backup
- Open
aliases.zshand look foralias dev01=.... - Specify the path of target kubeconfig file to be used on
/path/to/.kube/kubeconf. - Save the changes and restart terminal.
Tip
You can change dev01 to the word or alias you want.
admin@MacBook-Pro ~ % dev01 admin@MacBook-Pro ~ % ░▒▓ You are now configured to access dev01 environment.