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
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
if [ ! -d ~/.local/share/tmux/layouts ]; then
|
if [ ! -d $HOME/.local/share/tmux/layouts ]; then
|
||||||
mkdir -p ~/.local/share/tmux/layouts
|
mkdir -p $HOME/.local/share/tmux/layouts
|
||||||
echo changed created layouts directory
|
echo changed created layouts directory
|
||||||
fi
|
fi
|
||||||
|
|
||||||
declare -A symlinks=(
|
declare -A symlinks=(
|
||||||
[~/.config/tmux/tmux.conf]=~/.tmux.conf
|
[$HOME/.config/tmux/tmux.conf]=$HOME/.tmux.conf
|
||||||
)
|
)
|
||||||
|
|
||||||
layouts=(
|
layouts=(
|
||||||
@ -19,7 +19,7 @@ layouts=(
|
|||||||
window-wide-right
|
window-wide-right
|
||||||
)
|
)
|
||||||
for layout in ${layouts[@]}; do
|
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
|
done
|
||||||
|
|
||||||
for source in ${!symlinks[@]}; do
|
for source in ${!symlinks[@]}; do
|
||||||
|
Loading…
x
Reference in New Issue
Block a user