update
This commit is contained in:
3
example/dotfiles-repo/common/bin/.local/bin/flow-hello
Normal file
3
example/dotfiles-repo/common/bin/.local/bin/flow-hello
Normal file
@@ -0,0 +1,3 @@
|
||||
#!/usr/bin/env sh
|
||||
|
||||
echo "Hello from flow example dotfiles"
|
||||
15
example/dotfiles-repo/common/flow/.config/flow/config
Normal file
15
example/dotfiles-repo/common/flow/.config/flow/config
Normal file
@@ -0,0 +1,15 @@
|
||||
[repository]
|
||||
dotfiles_url = /ABSOLUTE/PATH/TO/flow-cli/example/dotfiles-repo
|
||||
dotfiles_branch = main
|
||||
|
||||
[paths]
|
||||
projects_dir = ~/projects
|
||||
|
||||
[defaults]
|
||||
container_registry = registry.example.com
|
||||
container_tag = latest
|
||||
tmux_session = default
|
||||
|
||||
[targets]
|
||||
personal = orb personal.orb
|
||||
work@ec2 = work.internal ~/.ssh/id_work
|
||||
2
example/dotfiles-repo/common/flow/.config/flow/env.sh
Normal file
2
example/dotfiles-repo/common/flow/.config/flow/env.sh
Normal file
@@ -0,0 +1,2 @@
|
||||
export FLOW_ENV=example
|
||||
export FLOW_EDITOR=vim
|
||||
96
example/dotfiles-repo/common/flow/.config/flow/manifest.yaml
Normal file
96
example/dotfiles-repo/common/flow/.config/flow/manifest.yaml
Normal file
@@ -0,0 +1,96 @@
|
||||
profiles:
|
||||
linux-auto:
|
||||
os: linux
|
||||
requires: [TARGET_HOSTNAME, USER_EMAIL]
|
||||
hostname: "$TARGET_HOSTNAME"
|
||||
locale: en_US.UTF-8
|
||||
shell: zsh
|
||||
packages:
|
||||
standard: [git, tmux, zsh, fd, ripgrep, python-dev]
|
||||
binary: [neovim, lazygit]
|
||||
ssh_keygen:
|
||||
- type: ed25519
|
||||
filename: id_ed25519
|
||||
comment: "$USER_EMAIL"
|
||||
configs: [flow, zsh, git, tmux, nvim, bin]
|
||||
runcmd:
|
||||
- mkdir -p ~/projects
|
||||
- git config --global user.email "$USER_EMAIL"
|
||||
|
||||
ubuntu-dev:
|
||||
os: linux
|
||||
package-manager: apt
|
||||
packages:
|
||||
package: [git, tmux, zsh, fd, ripgrep, python-dev]
|
||||
binary: [neovim]
|
||||
configs: [flow, zsh, git, tmux]
|
||||
|
||||
fedora-dev:
|
||||
os: linux
|
||||
package-manager: dnf
|
||||
packages:
|
||||
standard: [git, tmux, zsh, fd, ripgrep, python-dev]
|
||||
binary: [neovim]
|
||||
configs: [flow, zsh, git, tmux]
|
||||
|
||||
macos-dev:
|
||||
os: macos
|
||||
package-manager: brew
|
||||
packages:
|
||||
standard: [git, tmux, zsh, fd, ripgrep]
|
||||
cask: [wezterm]
|
||||
binary: [neovim]
|
||||
configs: [flow, zsh, git, nvim]
|
||||
|
||||
work-linux:
|
||||
os: linux
|
||||
package-manager: apt
|
||||
requires: [WORK_EMAIL]
|
||||
packages:
|
||||
standard: [git, tmux, zsh]
|
||||
configs: [git, zsh]
|
||||
runcmd:
|
||||
- git config --global user.email "$WORK_EMAIL"
|
||||
|
||||
package-map:
|
||||
fd:
|
||||
apt: fd-find
|
||||
dnf: fd-find
|
||||
brew: fd
|
||||
python-dev:
|
||||
apt: python3-dev
|
||||
dnf: python3-devel
|
||||
brew: python
|
||||
ripgrep:
|
||||
apt: ripgrep
|
||||
dnf: ripgrep
|
||||
brew: ripgrep
|
||||
|
||||
binaries:
|
||||
neovim:
|
||||
source: github:neovim/neovim
|
||||
version: "0.10.4"
|
||||
asset-pattern: "nvim-{{os}}-{{arch}}.tar.gz"
|
||||
platform-map:
|
||||
linux-amd64: { os: linux, arch: x86_64 }
|
||||
linux-arm64: { os: linux, arch: arm64 }
|
||||
macos-arm64: { os: macos, arch: arm64 }
|
||||
install-script: |
|
||||
curl -fL "{{downloadUrl}}" -o /tmp/nvim.tar.gz
|
||||
tar -xzf /tmp/nvim.tar.gz -C /tmp
|
||||
mkdir -p ~/.local/bin
|
||||
cp /tmp/nvim-*/bin/nvim ~/.local/bin/nvim
|
||||
|
||||
lazygit:
|
||||
source: github:jesseduffield/lazygit
|
||||
version: "0.44.1"
|
||||
asset-pattern: "lazygit_{{version}}_{{os}}_{{arch}}.tar.gz"
|
||||
platform-map:
|
||||
linux-amd64: { os: Linux, arch: x86_64 }
|
||||
linux-arm64: { os: Linux, arch: arm64 }
|
||||
macos-arm64: { os: Darwin, arch: arm64 }
|
||||
install-script: |
|
||||
curl -fL "{{downloadUrl}}" -o /tmp/lazygit.tar.gz
|
||||
tar -xzf /tmp/lazygit.tar.gz -C /tmp
|
||||
mkdir -p ~/.local/bin
|
||||
cp /tmp/lazygit ~/.local/bin/lazygit
|
||||
9
example/dotfiles-repo/common/git/.gitconfig
Normal file
9
example/dotfiles-repo/common/git/.gitconfig
Normal file
@@ -0,0 +1,9 @@
|
||||
[user]
|
||||
name = Example User
|
||||
email = example@example.com
|
||||
|
||||
[init]
|
||||
defaultBranch = main
|
||||
|
||||
[pull]
|
||||
rebase = true
|
||||
6
example/dotfiles-repo/common/nvim/.config/nvim/init.lua
Normal file
6
example/dotfiles-repo/common/nvim/.config/nvim/init.lua
Normal file
@@ -0,0 +1,6 @@
|
||||
vim.opt.number = true
|
||||
vim.opt.relativenumber = true
|
||||
vim.opt.expandtab = true
|
||||
vim.opt.shiftwidth = 2
|
||||
|
||||
vim.g.mapleader = " "
|
||||
3
example/dotfiles-repo/common/tmux/.tmux.conf
Normal file
3
example/dotfiles-repo/common/tmux/.tmux.conf
Normal file
@@ -0,0 +1,3 @@
|
||||
set -g mouse on
|
||||
set -g history-limit 100000
|
||||
setw -g mode-keys vi
|
||||
8
example/dotfiles-repo/common/zsh/.zshrc
Normal file
8
example/dotfiles-repo/common/zsh/.zshrc
Normal file
@@ -0,0 +1,8 @@
|
||||
export EDITOR=vim
|
||||
export PATH="$HOME/.local/bin:$PATH"
|
||||
|
||||
alias ll='ls -lah'
|
||||
|
||||
if [ -f "$HOME/.config/flow/env.sh" ]; then
|
||||
. "$HOME/.config/flow/env.sh"
|
||||
fi
|
||||
6
example/dotfiles-repo/profiles/work/git/.gitconfig
Normal file
6
example/dotfiles-repo/profiles/work/git/.gitconfig
Normal file
@@ -0,0 +1,6 @@
|
||||
[user]
|
||||
name = Example Work User
|
||||
email = work@example.com
|
||||
|
||||
[url "git@github.com:work/"]
|
||||
insteadOf = https://github.com/work/
|
||||
7
example/dotfiles-repo/profiles/work/zsh/.zshrc
Normal file
7
example/dotfiles-repo/profiles/work/zsh/.zshrc
Normal file
@@ -0,0 +1,7 @@
|
||||
export EDITOR=vim
|
||||
export PATH="$HOME/.local/bin:$PATH"
|
||||
|
||||
alias ll='ls -lah'
|
||||
alias gs='git status -sb'
|
||||
|
||||
export WORK_MODE=1
|
||||
Reference in New Issue
Block a user