Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/progrhyme/dotfiles

My dotfiles including various utility scripts
https://github.com/progrhyme/dotfiles

dotfiles shell shell-script

Last synced: about 2 months ago
JSON representation

My dotfiles including various utility scripts

Awesome Lists containing this project

README

        

# dotfiles

Personal dotfiles including scripts and config files for some shell environments.

# Prerequisites

- https://github.com/progrhyme/shelp/

And below packages should be installed by shelp:

```sh
shelp install progrhyme/dot-sh
```

# Setup

To set up *dotfiles* into your home directory, execute following commands:

```sh
git clone [email protected]:progrhyme/dotfiles.git
cd dotfiles
git submodule update --init

export DOTS_ENV=
script/setup-shellenv.sh
script/setup-vim-env.sh
```

# Related Projects

- [progrhyme/myenv](https://github.com/progrhyme/myenv)
... contains various CLI materials for Ubuntu, macOS etc., utilizing _dotfiles_.

# Contents
## Setup Scripts
### script/setup-dotfiles.sh

Most implementation is in `lib/dotfiles.bashrc`.
In addition to making symbolic links to dotfiles under the root directory, this
script does by default create symbolic links to scripts in `*shrc.d/` directory
into `~/.{ba,z}shrc.d/` directory according to `$SETUP_SHELL` variable; falling
back to `$SHELL` if `$SETUP_SHELL` is undefined.
Destination directory is defined by variable `$CUSTOM_RC_DIR` in `lib/setup.bashrc`.

## Shell Configuration
### peco functions

`{ba,z}shrc.d/peco.{ba,z}shrc` defines some functions invoked by keyboard
shortcuts using key binding system.

Key | Bash | Zsh | Functionality
-----|------|-----|---------------
`Ctrl-U + P` | ✅ | | Search and insert Process ID onto prompt
`Ctrl-R` | ✅ | ✅ | Search and select command from history
`Ctrl-U + D` | ✅ | ✅ | Search directories from repositories under predefined directories and Change Directory to selected one
`Ctrl-U + F` | ✅ | ✅ | Search any files from repositories under predefined directories and insert selected one onto prompt
`Ctrl-U + C` | ✅ | ✅ | Search any files under current directory and insert selected one onto prompt
`Ctrl-U + A` | ✅ | ✅ | Search any files including hidden entries under current directory and insert selected one onto prompt
`Ctrl-U + R` | | ✅ | Search directories from Zsh cdr history and Change Directory to selected one
`Ctrl-U + X` | ✅ | ✅ | Search kubectl contexts and activate selected one
`Ctrl-U + N` | ✅ | ✅ | Search kubectl namespaces and set selected one to default
`Ctrl-U + G` | ✅ | ✅ | Search gcloud config configurations and activate selected one