Fix install.sh where ~ does expand inside associative array
This commit is contained in:
parent
0924e6174e
commit
71f3ff3659
@ -1,12 +1,12 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
if [ ! -d ~/.local/share/tmux/layouts ]; then
|
||||
mkdir -p ~/.local/share/tmux/layouts
|
||||
if [ ! -d $HOME/.local/share/tmux/layouts ]; then
|
||||
mkdir -p $HOME/.local/share/tmux/layouts
|
||||
echo changed created layouts directory
|
||||
fi
|
||||
|
||||
declare -A symlinks=(
|
||||
[~/.config/tmux/tmux.conf]=~/.tmux.conf
|
||||
[$HOME/.config/tmux/tmux.conf]=$HOME/.tmux.conf
|
||||
)
|
||||
|
||||
layouts=(
|
||||
@ -19,7 +19,7 @@ layouts=(
|
||||
window-wide-right
|
||||
)
|
||||
for layout in ${layouts[@]}; do
|
||||
symlinks[~/.config/tmux/layouts/$layout]=~/.local/share/tmux/layouts/$layout
|
||||
symlinks[$HOME/.config/tmux/layouts/$layout]=$HOME/.local/share/tmux/layouts/$layout
|
||||
done
|
||||
|
||||
for source in ${!symlinks[@]}; do
|
||||
|
Loading…
x
Reference in New Issue
Block a user