Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mtxr/zsh-change-case
Plugin for fast swap between upper and lower case in your command line. (ZSH-only)
https://github.com/mtxr/zsh-change-case
Last synced: 3 months ago
JSON representation
Plugin for fast swap between upper and lower case in your command line. (ZSH-only)
- Host: GitHub
- URL: https://github.com/mtxr/zsh-change-case
- Owner: mtxr
- Created: 2017-12-04T17:47:37.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2017-12-04T19:35:08.000Z (about 7 years ago)
- Last Synced: 2024-05-02T06:14:08.347Z (8 months ago)
- Language: Shell
- Size: 282 KB
- Stars: 7
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: change-case.zsh
Awesome Lists containing this project
README
# ZSH Change Case Plugin
## Table of contents
1. [Instalation](#instalation)
1. [Antibody plugin manager](#antibody-plugin-manager)
2. [Using Git](#using-git)
2. [Usage](#usage)## Instalation
### Antibody plugin manager
To install using Antibody, just add this in your `~/.zshrc`:
```
# your .zshrc file
antibody bundle mtxr/zsh-change-case
```### Using Git
Install `zsh-change-case` by cloning the repository:
```shellscript
$ git clone https://github.com/mtxr/zsh-change-case.git ${HOME}/.zsh-change-case
```After cloning, just laod it to your `~/.zshrc` adding this line:
```shellscript
# your .zshrc file
. ${HOME}/.zsh-change-case
```## Usage
I recomend you to use the following bindkeys (inspired by VSCode and Sublime Text):
* Ctrl+K + Ctrl+U to uppercase
* Ctrl+K + Ctrl+L to lowercase```shellscript
bindkey '^K^U' _mtxr-to-upper # Ctrl+K + Ctrl+U
bindkey '^K^L' _mtxr-to-lower # Ctrl+K + Ctrl+L
```In case of trouble, you probably need to unbind Ctrl+K. Just add this before the bindings you will use:
```shellscript
bindkey -r '^K'
```![Example](https://github.com/mtxr/zsh-change-case/raw/master/images/example-1.gif?raw=true)