Skip to content
This repository was archived by the owner on Mar 14, 2024. It is now read-only.

Commit 417c66e

Browse files
authored
Merge pull request #28 from ZeroThe2nd/update-editor-documentation
Update editor doc/config
2 parents d9a0a35 + 33b7336 commit 417c66e

File tree

3 files changed

+11
-2
lines changed

3 files changed

+11
-2
lines changed

README.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,13 @@ With the built-in edit command, you can easily edit your existing credentials. T
3232
```bash
3333
php artisan credentials:edit
3434
```
35+
36+
Optionally, you can change the used editor by adding the following to your .env file:
37+
38+
```
39+
EDITOR=nano
40+
```
41+
3542
![Credentials Demo](https://beyondco.de/github/credentials.gif)
3643

3744
## Installation

config/credentials.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,4 +15,6 @@
1515

1616
'cipher' => config('app.cipher'),
1717

18-
];
18+
'editor' => env('EDITOR', 'vi')
19+
20+
];

src/EditCredentialsCommand.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ public function handle(Credentials $credentials)
3939

4040
fwrite($handle, json_encode($decrypted, JSON_PRETTY_PRINT | JSON_FORCE_OBJECT));
4141

42-
$editor = env('EDITOR', 'vi');
42+
$editor = config('credential.editor', 'vi');
4343

4444
$process = new Process([$editor, $meta['uri']]);
4545

0 commit comments

Comments
 (0)