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

https://github.com/miguelzacca/code-alias

Simple code aliases with shell and C++
https://github.com/miguelzacca/code-alias

Last synced: about 2 months ago
JSON representation

Simple code aliases with shell and C++

Awesome Lists containing this project

README

        

# code-alias

Adds an simple alias for `code`. Made for Linux only.

## Config

To use, create a tools folder, and place the `code-alias` inside. Just run for the first time:

```bash
mkdir ~/tools
cd ~/tools
git clone https://github.com/miguelzacca/code-alias.git
chmod +x ./code-alias/main
./code-alias/main
cd ~
```

## Doc

- `c de ` to `code Desktop/`

- `c do ` to `code Documents/`

- `c to ` to `code tools/`

- `c - ` to `code ./`

## Warn

The alias will be added to ~/.bashrc automatically. The command is in `src/config.sh`.

## More

To add some extra simple aliases to ~/.bashrc run:

```bash
cd ~
chmod +x ~/tools/code-alias/more.sh
./tools/code-alias/more.sh
```
- `e` to `exit`

- `cls` to `clear`

- `cdd` to `cd ~/Desktop`

- `gg` to `google-chrome & disown && exit`