[feature] support cli mode
This commit is contained in:
parent
2d4b6fc819
commit
e744a4965b
|
@ -40,21 +40,25 @@ function link-dotfile
|
||||||
run-cmd "ln -sf $DIR/$argv ~/.$argv"
|
run-cmd "ln -sf $DIR/$argv ~/.$argv"
|
||||||
end
|
end
|
||||||
|
|
||||||
|
set -l argv
|
||||||
|
argparse 'c/cli-only' -- $argv
|
||||||
|
|
||||||
|
|
||||||
link-dotfolder config
|
link-dotfolder config
|
||||||
link-dotfolder pip
|
link-dotfolder pip
|
||||||
link-dotfile tmux.conf
|
link-dotfile tmux.conf
|
||||||
link-dotfile vimrc
|
link-dotfile vimrc
|
||||||
link-dotfile xinitrc
|
|
||||||
link-dotfile Xresources
|
|
||||||
link-dotfile Xmodmap
|
|
||||||
|
|
||||||
|
|
||||||
# install tpm
|
# install tpm
|
||||||
git clone https://github.com/tmux-plugins/tpm ~/.tmux/plugins/tpm
|
git clone https://github.com/tmux-plugins/tpm ~/.tmux/plugins/tpm
|
||||||
|
|
||||||
|
if [ -n "$_flag_c" ]
|
||||||
|
link-dotfile xinitrc
|
||||||
|
link-dotfile Xresources
|
||||||
|
link-dotfile Xmodmap
|
||||||
# set zathura as default pdf viewer
|
# set zathura as default pdf viewer
|
||||||
xdg-mime default org.pwmt.zathura.desktop application/pdf
|
xdg-mime default org.pwmt.zathura.desktop application/pdf
|
||||||
|
|
||||||
|
|
||||||
# setup mpd
|
# setup mpd
|
||||||
mkdir -p ~/.mpd/playlists
|
mkdir -p ~/.mpd/playlists
|
||||||
systemctl --user enable mpd
|
systemctl --user enable mpd
|
||||||
|
@ -63,3 +67,4 @@ systemctl --user start mpd
|
||||||
# install ranger plugin
|
# install ranger plugin
|
||||||
yay -S ttf-nerd-fonts-symbols
|
yay -S ttf-nerd-fonts-symbols
|
||||||
git clone https://github.com/alexanderjeurissen/ranger_devicons ~/.config/ranger/plugins/ranger_devicons
|
git clone https://github.com/alexanderjeurissen/ranger_devicons ~/.config/ranger/plugins/ranger_devicons
|
||||||
|
end
|
||||||
|
|
Loading…
Reference in New Issue
Block a user