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++
- Host: GitHub
- URL: https://github.com/miguelzacca/code-alias
- Owner: miguelzacca
- License: mit
- Created: 2024-05-12T11:51:51.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2024-05-13T00:06:09.000Z (about 1 year ago)
- Last Synced: 2025-02-15T17:42:52.658Z (4 months ago)
- Language: C++
- Size: 29.3 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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`