kandi background
Explore Kits

dotfiles | 📚 Linux configuration files | Configuration Management library

 by   iyyel Shell Version: Current License: Unlicense

 by   iyyel Shell Version: Current License: Unlicense

Download this library from

kandi X-RAY | dotfiles Summary

dotfiles is a Shell library typically used in Devops, Configuration Management applications. dotfiles has no bugs, it has no vulnerabilities, it has a Permissive License and it has low support. You can download it from GitHub.
In the unix world programs are commonly configured in two different ways, via shell arguments or text based configuration files. Programs with many options like window managers or text editors are configured on a per-user basis with files in your home directory ~. In unix like operating systems any file or directory name that starts with a period or full stop character is considered hidden, and in a default view will not be displayed, thus the name dotfiles.
Support
Support
Quality
Quality
Security
Security
License
License
Reuse
Reuse

kandi-support Support

  • dotfiles has a low active ecosystem.
  • It has 4 star(s) with 0 fork(s). There are no watchers for this library.
  • It had no major release in the last 12 months.
  • dotfiles has no issues reported. There are no pull requests.
  • It has a neutral sentiment in the developer community.
  • The latest version of dotfiles is current.
dotfiles Support
Best in #Configuration Management
Average in #Configuration Management
dotfiles Support
Best in #Configuration Management
Average in #Configuration Management

quality kandi Quality

  • dotfiles has 0 bugs and 0 code smells.
dotfiles Quality
Best in #Configuration Management
Average in #Configuration Management
dotfiles Quality
Best in #Configuration Management
Average in #Configuration Management

securitySecurity

  • dotfiles has no vulnerabilities reported, and its dependent libraries have no vulnerabilities reported.
  • dotfiles code analysis shows 0 unresolved vulnerabilities.
  • There are 0 security hotspots that need review.
dotfiles Security
Best in #Configuration Management
Average in #Configuration Management
dotfiles Security
Best in #Configuration Management
Average in #Configuration Management

license License

  • dotfiles is licensed under the Unlicense License. This license is Permissive.
  • Permissive licenses have the least restrictions, and you can use them in most projects.
dotfiles License
Best in #Configuration Management
Average in #Configuration Management
dotfiles License
Best in #Configuration Management
Average in #Configuration Management

buildReuse

  • dotfiles releases are not available. You will need to build from source code and install.
  • Installation instructions, examples and code snippets are available.
dotfiles Reuse
Best in #Configuration Management
Average in #Configuration Management
dotfiles Reuse
Best in #Configuration Management
Average in #Configuration Management
Top functions reviewed by kandi - BETA

Coming Soon for all Libraries!

Currently covering the most popular Java, JavaScript and Python libraries. See a SAMPLE HERE.
kandi's functional review helps you automatically verify the functionalities of the libraries and avoid rework.

dotfiles Key Features

📚 Linux configuration files

default

copy iconCopydownload iconDownload
      _       _    __ _ _           
     | |     | |  / _(_) |          
   __| | ___ | |_| |_ _| | ___  ___ 
  / _` |/ _ \| __|  _| | |/ _ \/ __|
 | (_| | (_) | |_| | | | |  __/\__ \
  \__,_|\___/ \__|_| |_|_|\___||___/
                                    
  ▓▓▓▓▓▓▓▓▓▓
 ░▓ about  ▓ linux configuration files (dotfiles)
 ░▓ author ▓ iyyel <i@iyyel.io>
 ░▓ code   ▓ https://github.com/iyyel/dotfiles
 ░▓ mirror ▓ https://git.iyyel.io/iyyel/dotfiles
 ░▓▓▓▓▓▓▓▓▓▓
 ░░░░░░░░░░

How to symlink alias and function dotfiles

copy iconCopydownload iconDownload
if [ -f ~/dotfiles/.aliases ];
then source ~/dotfiles/.aliases
fi

Is it possible to trace my shell(bash, fish, zsh)?

copy iconCopydownload iconDownload
-p pid         trace process with process id PID, may be repeated
  -f             follow forks
  -ff            follow forks with output into separate files
-----------------------
-p pid         trace process with process id PID, may be repeated
  -f             follow forks
  -ff            follow forks with output into separate files
-----------------------
fish_trace=1 fish

UnhandledPromiseRejection

copy iconCopydownload iconDownload
//ecouter la methode GET et la route 
app.get('/', async(req,res) => {
    const indexHtml = await generatorModele('index')

    res.send(indexHtml)
    
})
//ecouter la methode GET et la route 
app.get('/', async(req,res) => {
    try {
        const indexHtml = await generatorModele('index');
        res.send(indexHtml);
    } catch(e) {
        console.log(e);
        res.sendStatus(500);
    }
});
-----------------------
//ecouter la methode GET et la route 
app.get('/', async(req,res) => {
    const indexHtml = await generatorModele('index')

    res.send(indexHtml)
    
})
//ecouter la methode GET et la route 
app.get('/', async(req,res) => {
    try {
        const indexHtml = await generatorModele('index');
        res.send(indexHtml);
    } catch(e) {
        console.log(e);
        res.sendStatus(500);
    }
});

How do I 'better' my paths to lsp server binaries whilst using nvim-lsp-install?

copy iconCopydownload iconDownload
local lsp_installer = require("nvim-lsp-installer")

lsp_installer.on_server_ready(function (server)
   server:setup {}
end)

How to properly setup Fish and version the configuration?

copy iconCopydownload iconDownload
# machine-specific
set host_config ~/.config/fish/config.(hostname).fish
test -r $host_config; and source $host_config
set -e host_config

set host_funcdir ~/.config/fish/functions_(hostname)
test -d $host_funcdir; and set fish_function_path $host_funcdir $fish_function_path
set -e host_funcdir
function ls --wraps=exa
  exa --classify $argv
end
-----------------------
# machine-specific
set host_config ~/.config/fish/config.(hostname).fish
test -r $host_config; and source $host_config
set -e host_config

set host_funcdir ~/.config/fish/functions_(hostname)
test -d $host_funcdir; and set fish_function_path $host_funcdir $fish_function_path
set -e host_funcdir
function ls --wraps=exa
  exa --classify $argv
end

extra links from foreach in Makefile

copy iconCopydownload iconDownload
_emacs: | $(EMACS_TARGET_DIR)
        $(foreach file, \
         $(EMACS_CONFIG_FILES), \
         ln -sf $(file) $(addsuffix /, $(EMACS_TARGET_DIR)))
ln -sf .../emacs/early-init.el /Users/xxx/.emacs.d/ ln -sf .../emacs/init-org.el /Users/xxx/.emacs.d/ ln -sf ...
        $(foreach file, \
         $(EMACS_CONFIG_FILES), \
         ln -sf $(file) $(addsuffix /, $(EMACS_TARGET_DIR)) ; )
ln -sf .../emacs/early-init.el /Users/xxx/.emacs.d/ ; ln -sf .../emacs/init-org.el /Users/xxx/.emacs.d/ ; ln -sf ...
        for file in $(EMACS_CONFIG_FILES); do \
           ln -sf $$file $(addsuffix /, $(EMACS_TARGET_DIR)) ; \
        done
        ln -sf $(EMACS_CONFIG_FILES) $(EMACS_TARGET_DIR)
-----------------------
_emacs: | $(EMACS_TARGET_DIR)
        $(foreach file, \
         $(EMACS_CONFIG_FILES), \
         ln -sf $(file) $(addsuffix /, $(EMACS_TARGET_DIR)))
ln -sf .../emacs/early-init.el /Users/xxx/.emacs.d/ ln -sf .../emacs/init-org.el /Users/xxx/.emacs.d/ ln -sf ...
        $(foreach file, \
         $(EMACS_CONFIG_FILES), \
         ln -sf $(file) $(addsuffix /, $(EMACS_TARGET_DIR)) ; )
ln -sf .../emacs/early-init.el /Users/xxx/.emacs.d/ ; ln -sf .../emacs/init-org.el /Users/xxx/.emacs.d/ ; ln -sf ...
        for file in $(EMACS_CONFIG_FILES); do \
           ln -sf $$file $(addsuffix /, $(EMACS_TARGET_DIR)) ; \
        done
        ln -sf $(EMACS_CONFIG_FILES) $(EMACS_TARGET_DIR)
-----------------------
_emacs: | $(EMACS_TARGET_DIR)
        $(foreach file, \
         $(EMACS_CONFIG_FILES), \
         ln -sf $(file) $(addsuffix /, $(EMACS_TARGET_DIR)))
ln -sf .../emacs/early-init.el /Users/xxx/.emacs.d/ ln -sf .../emacs/init-org.el /Users/xxx/.emacs.d/ ln -sf ...
        $(foreach file, \
         $(EMACS_CONFIG_FILES), \
         ln -sf $(file) $(addsuffix /, $(EMACS_TARGET_DIR)) ; )
ln -sf .../emacs/early-init.el /Users/xxx/.emacs.d/ ; ln -sf .../emacs/init-org.el /Users/xxx/.emacs.d/ ; ln -sf ...
        for file in $(EMACS_CONFIG_FILES); do \
           ln -sf $$file $(addsuffix /, $(EMACS_TARGET_DIR)) ; \
        done
        ln -sf $(EMACS_CONFIG_FILES) $(EMACS_TARGET_DIR)
-----------------------
_emacs: | $(EMACS_TARGET_DIR)
        $(foreach file, \
         $(EMACS_CONFIG_FILES), \
         ln -sf $(file) $(addsuffix /, $(EMACS_TARGET_DIR)))
ln -sf .../emacs/early-init.el /Users/xxx/.emacs.d/ ln -sf .../emacs/init-org.el /Users/xxx/.emacs.d/ ln -sf ...
        $(foreach file, \
         $(EMACS_CONFIG_FILES), \
         ln -sf $(file) $(addsuffix /, $(EMACS_TARGET_DIR)) ; )
ln -sf .../emacs/early-init.el /Users/xxx/.emacs.d/ ; ln -sf .../emacs/init-org.el /Users/xxx/.emacs.d/ ; ln -sf ...
        for file in $(EMACS_CONFIG_FILES); do \
           ln -sf $$file $(addsuffix /, $(EMACS_TARGET_DIR)) ; \
        done
        ln -sf $(EMACS_CONFIG_FILES) $(EMACS_TARGET_DIR)
-----------------------
_emacs: | $(EMACS_TARGET_DIR)
        $(foreach file, \
         $(EMACS_CONFIG_FILES), \
         ln -sf $(file) $(addsuffix /, $(EMACS_TARGET_DIR)))
ln -sf .../emacs/early-init.el /Users/xxx/.emacs.d/ ln -sf .../emacs/init-org.el /Users/xxx/.emacs.d/ ln -sf ...
        $(foreach file, \
         $(EMACS_CONFIG_FILES), \
         ln -sf $(file) $(addsuffix /, $(EMACS_TARGET_DIR)) ; )
ln -sf .../emacs/early-init.el /Users/xxx/.emacs.d/ ; ln -sf .../emacs/init-org.el /Users/xxx/.emacs.d/ ; ln -sf ...
        for file in $(EMACS_CONFIG_FILES); do \
           ln -sf $$file $(addsuffix /, $(EMACS_TARGET_DIR)) ; \
        done
        ln -sf $(EMACS_CONFIG_FILES) $(EMACS_TARGET_DIR)
-----------------------
_emacs: | $(EMACS_TARGET_DIR)
        $(foreach file, \
         $(EMACS_CONFIG_FILES), \
         ln -sf $(file) $(addsuffix /, $(EMACS_TARGET_DIR)))
ln -sf .../emacs/early-init.el /Users/xxx/.emacs.d/ ln -sf .../emacs/init-org.el /Users/xxx/.emacs.d/ ln -sf ...
        $(foreach file, \
         $(EMACS_CONFIG_FILES), \
         ln -sf $(file) $(addsuffix /, $(EMACS_TARGET_DIR)) ; )
ln -sf .../emacs/early-init.el /Users/xxx/.emacs.d/ ; ln -sf .../emacs/init-org.el /Users/xxx/.emacs.d/ ; ln -sf ...
        for file in $(EMACS_CONFIG_FILES); do \
           ln -sf $$file $(addsuffix /, $(EMACS_TARGET_DIR)) ; \
        done
        ln -sf $(EMACS_CONFIG_FILES) $(EMACS_TARGET_DIR)

Warning! PATH is not properly set up, /Users/me/.rvm/gems/ruby-2.7.3/bin is not at first place

copy iconCopydownload iconDownload
# RVM can encounter errors if it's not the last thing in .bash_profile
export PATH="$PATH:$HOME/.rvm/bin" # Add RVM to path for scripting (to manage Ruby versions)
export PATH="$GEM_HOME/bin:$PATH"
[[ -s "$HOME/.rvm/scripts/rvm" ]] && source "$HOME/.rvm/scripts/rvm"  # Load RVM into a shell session *as a function*

Mercurial: Track repo with .hg dir and work-tree in separate directories

copy iconCopydownload iconDownload
hg --config extensions.share= share $HOME/.dotfiles $HOME

How to replace environment variable with value in ansible variable

copy iconCopydownload iconDownload
- name: "Replace dollar env var with local env value"
  hosts: localhost
  gather_facts: false

  vars:
    dotfiles: "{{ lookup('file', 'dotfiles.json') }}"

  tasks:
    - name: Replace dollar env var with local env value
      vars:
        env_var: >-
          {{ item.destination | regex_replace('\$(\w+)/', '\1') }}
        destination: >-
          {{ item.destination | regex_replace('\$\w+[^/]', lookup('env', env_var)) }}{{ item.name }}
      debug:
        msg: "{{ destination }}"
      loop: "{{ dotfiles.mac }}"
$ ansible-playbook bootstrap.yml

PLAY [Replace dollar env var with local env value] *****************************************************************************

TASK [Replace dollar env var with local env value] *****************************************************************************
ok: [localhost] => (item={'name': '.gitconfig', 'destination': '$HOME/'}) => {
    "msg": "/home/somelocaluser/.gitconfig"
}

PLAY RECAP *****************************************************************************
localhost                  : ok=1    changed=0    unreachable=0    failed=0    skipped=0    rescued=0    ignored=0   
 
-----------------------
- name: "Replace dollar env var with local env value"
  hosts: localhost
  gather_facts: false

  vars:
    dotfiles: "{{ lookup('file', 'dotfiles.json') }}"

  tasks:
    - name: Replace dollar env var with local env value
      vars:
        env_var: >-
          {{ item.destination | regex_replace('\$(\w+)/', '\1') }}
        destination: >-
          {{ item.destination | regex_replace('\$\w+[^/]', lookup('env', env_var)) }}{{ item.name }}
      debug:
        msg: "{{ destination }}"
      loop: "{{ dotfiles.mac }}"
$ ansible-playbook bootstrap.yml

PLAY [Replace dollar env var with local env value] *****************************************************************************

TASK [Replace dollar env var with local env value] *****************************************************************************
ok: [localhost] => (item={'name': '.gitconfig', 'destination': '$HOME/'}) => {
    "msg": "/home/somelocaluser/.gitconfig"
}

PLAY RECAP *****************************************************************************
localhost                  : ok=1    changed=0    unreachable=0    failed=0    skipped=0    rescued=0    ignored=0   
 

express static hosting image doesn't work for IP address 192.168.x.x

copy iconCopydownload iconDownload
python -m SimpleHTTPServer 8090

Community Discussions

Trending Discussions on dotfiles
  • Avoid read file being the alternate buffer in Vim
  • How to symlink alias and function dotfiles
  • Is it possible to trace my shell(bash, fish, zsh)?
  • UnhandledPromiseRejection
  • How do I 'better' my paths to lsp server binaries whilst using nvim-lsp-install?
  • How to insert the configuration.nix file inside my dot files?
  • How to properly setup Fish and version the configuration?
  • extra links from foreach in Makefile
  • Warning! PATH is not properly set up, /Users/me/.rvm/gems/ruby-2.7.3/bin is not at first place
  • Neovim gkeep plugin
Trending Discussions on dotfiles

QUESTION

Avoid read file being the alternate buffer in Vim

Asked 2022-Mar-24 at 11:24

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:

autocmd BufNewFile *.vue silent! 0r ~/.dotfiles/skeletons/vue-pug-scss.vue

This simple thing works great except when using CTRL-^ it goes back to the boilerplate file and I don't want this. I don't want the boilerplate file to be in my history of visited files so to speak.

I've tried many things but I struggle to understand how the buffer list works together with CTRL-^. The thing is that if I run :ls, the boilerplate file does not appear even though it is what I get when doing CTRL-^. It only appears in :ls once I've been back on it.

What I thought would work is to add | bd# but it says no buffer was deleted. When I am on the newly created file, :bd# does not work whereas :b# works. This sounds completely illogical to me, or inconsistent at best. Although I am probably mixing up an alternate buffer and previous buffer or something.

Does anybody know how I can make this work?

ANSWER

Answered 2022-Mar-24 at 09:53

From :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.

Source https://stackoverflow.com/questions/71599973

Community Discussions, Code Snippets contain sources that include Stack Exchange Network

Vulnerabilities

No vulnerabilities reported

Install dotfiles

Window Manager: dwm
Bar: dwmblocks
Terminal Emulator: st
Shell: zsh
Music Player: spotify-tui
Text Editor: nvim
Web Browser: firefox
Color theme: gruvbox

Support

For any new features, suggestions and bugs create an issue on GitHub. If you have any questions check and ask questions on community page Stack Overflow .

DOWNLOAD this Library from

Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from
over 430 million Knowledge Items
Find more libraries
Reuse Solution Kits and Libraries Curated by Popular Use Cases

Save this library and start creating your kit

Explore Related Topics

Share this Page

share link
Consider Popular Configuration Management Libraries
Try Top Libraries by iyyel
Compare Configuration Management Libraries with Highest Support
Compare Configuration Management Libraries with Highest Quality
Compare Configuration Management Libraries with Highest Security
Compare Configuration Management Libraries with Permissive License
Compare Configuration Management Libraries with Highest Reuse
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from
over 430 million Knowledge Items
Find more libraries
Reuse Solution Kits and Libraries Curated by Popular Use Cases

Save this library and start creating your kit

  • © 2022 Open Weaver Inc.
  • © 2022 Open Weaver Inc.