https://github.com/onurozuduru/dotfiles
My dotfiles
https://github.com/onurozuduru/dotfiles
Last synced: 8 months ago
JSON representation
My dotfiles
- Host: GitHub
- URL: https://github.com/onurozuduru/dotfiles
- Owner: onurozuduru
- Created: 2024-03-04T21:51:25.000Z (over 1 year ago)
- Default Branch: master
- Last Pushed: 2024-09-14T21:45:47.000Z (about 1 year ago)
- Last Synced: 2024-09-15T06:00:58.173Z (about 1 year ago)
- Language: Lua
- Size: 132 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# My Dotfiles
Directory structure and setup is managed by simple tool [dothome](https://github.com/onurozuduru/dothome).
## Description of Files and Directories
|File/Directory|Description |
|--------------|-----------------------------------------------------------------------------------------------------------|
|.profile | Adds following directories to `$PATH` if they exist: `$HOME/bin`, `$HOME/.local/bin`, `/usr/local/go/bin`.|
|.bashrc | Sets prompt, includes files under `.bash_config` and `.bash_config/work` if they exist. |
|.bash_config/ | Stores files for `aliases`, `functions`, `env`. |
|.config/nvim/ | Neovim config based on [AstroNvim user template](https://github.com/AstroNvim/template). |## Bash Configuration Logic
```mermaid
flowchart-elk LR
%% Main flow
BASHRC[bashrc] --> ENV{Does .bash_config/env exist?}
ENV --> ALIASES{Does .bash_config/aliases exist?}
ALIASES --> FUNCTIONS{Does .bash_config/functions exist?}
FUNCTIONS --> WORK{Does .bash_config/work/bashrc exist?}
WORK --> FZF(Source FZF files)
FZF --> COMP(Source bash completion)
COMP --> OMP{Does oh-my-posh command exist?}
OMP --> DONE[Done]
%% Yes branch
ENV --> |Yes| SOURCE(Source the file)
ALIASES --> |Yes| SOURCE
FUNCTIONS --> |Yes| SOURCE
WORK --> |Yes| SOURCE
OMP --> |Yes| SETOMP(Set oh-my-posh)
%% No branch
ENV --> |No| CONTINUE(Continue)
ALIASES --> |No| CONTINUE
FUNCTIONS --> |No| CONTINUE
WORK --> |No| CONTINUE
OMP --> |No| CONTINUE
```