
In this post we are going to take a look at a new CLI tool I have created for customizing colors for your alacritty terminal.
What is ala...
For further actions, you may consider blocking this person and/or reporting abuse
Hi, thanks for the awesome plugin, however, I am getting this error on running it on Linux Mint 19.3 Cinnamon.
internal/fs/utils.js:220
throw err;
^
Error: ENOENT: no such file or directory, scandir './themes'
at Object.readdirSync (fs.js:854:3)
at Object. (/home/moinmoti/.nvm/versions/node/v12.13.1/lib/node_modules/alacritty-themes/bin/cli.js:7:19)
at Module._compile (internal/modules/cjs/loader.js:959:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:995:10)
at Module.load (internal/modules/cjs/loader.js:815:32)
at Function.Module._load (internal/modules/cjs/loader.js:727:14)
at Function.Module.runMain (internal/modules/cjs/loader.js:1047:10)
at internal/main/run_main_module.js:17:11 {
errno: -2,
syscall: 'scandir',
code: 'ENOENT',
path: './themes'
}
So it requires the user to create a "themes" directory and save all themes in ".yml" individual files. And the command must be called in the parent directory of "themes". I think these instructions should be mentioned in the README.
Sorry for the trouble, it was a bug due to the file system path reference, it's fixed in the latest version 1.1.4, please check and let me know. Thanks a lot for reporting that...
And you don't have to create any folder for themes or copy files, just install the program and run the command or use npx directly
I have this error
(node:51812) UnhandledPromiseRejectionWarning: Error: ENOENT: no such file or directory, open '/home/angelhpascual/themes/alacritty.yml'
at Object.openSync (fs.js:443:3)
at Object.readFileSync (fs.js:343:35)
at inquirer.prompt.then (/usr/local/lib/node_modules/alacritty-themes/index.js:59:37)
at process._tickCallback (internal/process/next_tick.js:68:7)
(node:51812) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 1)
(node:51812) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
some fix for that? Thank you!
Fixed it here, please try with the latest version
github.com/rajasegar/alacritty-the...
This is amazing! Thanks. I love the way you can preview the theme right in the terminal. I had to move my config file from ~/.alacritty.yml to the ~/.config/alacritty/alacritty.yml dir but then it worked great!
Thanks, glad you like it
Hi, this looks like an awesome tool!
However it didn't work on Windows. Not to worry though, I've fixed that and sent a PR :)
thanks for the PR Rashil, I've merged it
I created something similar:
github.com/casonadams/alacritty-shell
doesn't use node, just bash stuff. And it is a bring your own theme kind of setup.
How can I uninstall this? npm uninstall alacritty-themes and npm remove alacritty-themes does not work
If it is installed globally I think you need the --global flag for the same like , npm uninstall --global alacritty-themes
Is there any way to make it live? By live I meant apply the theme without exiting the program or changing its scroll position?
Now, it’s possible to preview the selected current colorscheme without leaving the selector.
Check it out!