dotfiles | There is no place like ~/ | Configuration Management library
kandi X-RAY | dotfiles Summary
kandi X-RAY | dotfiles Summary
There is no place like ~/
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of dotfiles
dotfiles Key Features
dotfiles Examples and Code Snippets
Community Discussions
Trending Discussions on dotfiles
QUESTION
I am having an issue with Vim, NeoVim in this case if it makes a difference. I have an autocmd
that includes a boilerplate when creating a file of a certain type, a Vue file in this case. Here is the code:
ANSWER
Answered 2022-Mar-24 at 09:53From :help :read
, emphasis mine:
If a file name is given with ":r", it becomes the alternate file. This can be used, for example, when you want to edit that file instead: ":e! #". This can be switched off by removing the 'a' flag from the 'cpoptions' option.
QUESTION
I trying to make my own alises. I have this in my ~/dotfiles
:
ANSWER
Answered 2022-Mar-06 at 11:47Make sure you are sourcing your aliases file in your .bashrc or .zshrc
the code for that in your .bashrc or .zshrc should look something like this:
QUESTION
I am running archlinux(arcolinux distro to be specific) everything is fine but one little tiny problem which annoys me the problem is every time i open a terminal this pops us at the top of the terminal
"Linux pengu 5.15.25-1-lts x86_64 unknown"
I know this is a uname command with custom flags however I don't have that in my config.fish(I use fish shell(I run fish with bash i), I am aware that every time I open a my fish shell the stuff in my config.fish run, is there anything I am missing or what? here is my config.fish:
{
...ANSWER
Answered 2022-Mar-01 at 19:17strace
can attach to a process using -p
:
QUESTION
Hello guys i create a website and everything works locally but when i deployed in heroku its not working and i cant find why thanks for the help
heroku error:
2022-02-10T03:13:43.014545+00:00 app[web.1]: (node:22) 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(). To terminate the node process on unhandled promise rejection, use the CLI flag
--unhandled-rejections=strict
(see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 1) 2022-02-10T03:13:43.014570+00:00 app[web.1]: (node:22) [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. 2022-02-10T03:14:13.009344+00:00 heroku[router]: at=error code=H12 desc="Request timeout" method=GET path="/" host=websitechina.herokuapp.com request_id=ab93f3f6-9ccf-49e0-be7b-fe765239c47b fwd="61.219.114.7" dyno=web.1 connect=0ms service=30000ms status=503 bytes=0 protocol=https
index.js:
...ANSWER
Answered 2022-Feb-10 at 04:11All uses of await
that can reject must be handled in some way. They must either be surrounded by a try/catch
or the caller of the async
function must handle the rejection.
In this case, app.get()
does not pay any attention to a returned/rejected promise from the async
callback so you have to catch rejections locally. So, in this code:
QUESTION
At the moment, every time I install a new LPS server using nvim-lsp-installer, I add an entry to my .zshenv
, so that the bin folder of the server is available to $PATH
:
ANSWER
Answered 2022-Feb-06 at 20:56You shouldn't need to modify your PATH
manually when using nvim-lsp-installer. The minimal setup recommends the following (there's more in the README):
QUESTION
I am creating my dot files following this tutorial. It successfully works for emacs.d
.
Since I am using NixOS, I tried doing exactly the same steps with symlink creation for the configuration.nix
file. Thus, I did:
1 - On terminal:
...ANSWER
Answered 2021-Dec-20 at 02:08Your Step 2 seems to have cause the issue here: The symlink should be called configuration.nix
not configuration.nix~
as you have noticed.
You could fix this by running mv configuration.nix~ configuration.nix
in the /etc/nixos
folder which would rename configuration.nix~
to the correct configuration.nix
.
QUESTION
I'm switching to fish from zsh and I'm struggling to find the correct way to it setup for my taste. Also adding that I want to add it to my dotfiles
repository. Should I version the whole ~/.config/fish
folder?
Where should I put my environment variables? Should I just add them to the fish_variables
config file? I was thinking on sourcing a file ~/variables.fish
for the ones I don't want to version. Is this a good idea?
I use exa
and ripgrep
and I like to override grep
and ls
with them. Can I just set aliases for them overriding like I would with zsh/bash?
I want to use it inside neovim as well and I'm using the vi keybindings. Will this conflict with neovim? If so is there a way to make the vi keybindings active only outside of neovim?
It seems most of the stuff I use is provided by vanilla fish without plugins (which I'm quite happy about). Is there any tips or must have plugins I should install?
...ANSWER
Answered 2021-Nov-19 at 15:22I have my ~/.config/fish in git, works well. I share my config over several machines, and to have host-specific settings and functions, I do this:
QUESTION
I'm on a mac using GNU Make to manage my dotfiles. There's a directory with my emacs config files and a corresponding target in the Makefile:
...ANSWER
Answered 2021-Nov-09 at 20:10In general it's a bad idea to try to construct a complex shell command using make functions inside a recipe. You should simply use shell constructs: for example use the shell for
loop, not the make foreach
loop.
Let's see what your recipe does:
QUESTION
I am still getting the warning given below when I run rvm -v
.
ANSWER
Answered 2021-Nov-04 at 16:13I found the solution here which states the following:
I encountered a similar error using Mac OS 10.14.6 and RVM 1.29.9.
For me the issue was resolved by moving the following code in my
.bash_profile
to the bottom of the file:
QUESTION
I installed gkeep plugin for Neovim (https://github.com/stevearc/gkeep.nvim) and didn't like it. I removed it from my plugins (I use vim-plug) and run :PlugClean after that. But now I can't open neovim without error mentioning that gkeep plugin. How to fix this?
...ANSWER
Answered 2021-Oct-19 at 09:05It seems that you haven't removed the configuration related to gkeep.nvim. Try to remove all settings related to gkeep.nvim.
Also, when you open neovim, run the command :UpdateRemotePlugins
. It should solve your issue.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install dotfiles
Install the git version of AwesomeWM. Arch users can use the awesome-git AUR package. yay -S awesome-git For other distros, build instructions are here.
Install dependencies and enable services If you are curious, click here to see a table of dependencies and why they are needed. Software Ubuntu 18.04 or newer (and all Ubuntu-based distributions) sudo apt install rofi lm-sensors acpid jq fortune-mod redshift mpd mpc maim feh pulseaudio inotify-tools xdotool # Install light, which is not in the official Ubuntu repositories wget https://github.com/haikarainen/light/releases/download/v1.2/light_1.2_amd64.deb sudo dpkg -i light_1.2_amd64.deb Arch Linux (and all Arch-based distributions) Assuming your AUR helper is yay yay -S rofi lm_sensors acpid jq fortune-mod redshift mpd mpc maim feh light-git pulseaudio inotify-tools xdotool Services # For automatically launching mpd on login systemctl --user enable mpd.service systemctl --user start mpd.service # For charger plug/unplug events (if you have a battery) sudo systemctl enable acpid.service sudo systemctl start acpid.service
Install needed fonts You will need to install a few fonts (mainly icon fonts) in order for text and icons to be rendered properly. Necessary fonts: Typicons - github Material Design Icons - dropbox Icomoon - dropbox Nerd Fonts - website (You only need to pick and download one Nerd Font. They all include the same icons) Scriptina - website - Handwritten font used in the lock screen Optional fonts: My custom Iosevka build - dropbox - 💙 my favorite monospace font Anka/Coder Google Sans - 💙 my favorite sans font Roboto Condensed San Francisco Display Once you download them and unpack them, place them into ~/.fonts or ~/.local/share/fonts. You will need to create the directory if it does not exist. It does not matter that the actual font files (.ttf) are deep inside multiple directories. They will be detected as long as they can be accessed from ~/.fonts or ~/.local/share/fonts. You can find the fonts required inside the misc/fonts folder of the repository. cp -r ./misc/fonts/* ~/.fonts/ # Or to ~/.local/share/fonts cp -r ./misc/fonts/* ~/.local/share/fonts/ Finally, run the following in order for your system to detect the newly installed fonts. fc-cache -v
Install my AwesomeWM configuration files git clone https://github.com/elenapan/dotfiles cd dotfiles [ -e ~/.config/awesome ] && mv ~/.config/awesome ~/.config/awesome-backup-"$(date +%Y.%m.%d-%H.%M.%S)" # Backup current configuration cp -r config/awesome ~/.config/awesome
Configure stuff The relevant files are inside your ~/.config/awesome directory. User preferences and default applications In rc.lua there is a User variables and preferences section where user preferences and default applications are defined. You should change those to your liking. Probably the most important change you can make is to set your terminal. For more sophisticated control over your apps, check out apps.lua Note: For the weather widgets to work, you will also need to create an account on openweathermap, get your key, look for your city ID, and set openweathermap_key and openweathermap_city_id accordingly. Have a general idea of what my keybinds do My keybinds will most probably not suit you completely, but on your first login you might need to know how to navigate the desktop. See the keybinds section for more details. You can edit keys.lua to configure your keybinds. (Optional) This is also a good time to take a look at how my configuration is structured in order to understand the purpose of each file.
Login with AwesomeWM 🎉 Congratulations, at this point you should be ready to log out of your current desktop and into AwesomeWM. Your login screen should have a button that lets you change between available desktop sessions. If not, click here to find out how to fix it. Try it, play with it, enjoy it. Consider checking out the Advanced setup in order to enable and configure various components that are not needed to use the desktop, but provide a better experience.
(Optional) Eye-candy Set the wallpaper feh --bg-fill /path/to/your/wallpaper Load a colorscheme xrdb -merge /path/to/colorscheme Notes: To see the new colors you should restart AwesomeWM with super+shift+r or by right-clicking the desktop and clicking the gear icon (bottom-right). In the .xfiles directory of the repository I provide you with a few of my own colorschemes, but you can also use your favorite one. All of my AwesomeWM themes take their colors from xrdb. This also means that they play nice with tools like pywal.
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page