https://github.com/zwpaper/dotfile
https://github.com/zwpaper/dotfile
Last synced: about 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/zwpaper/dotfile
- Owner: zwpaper
- Created: 2017-03-29T12:10:17.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2023-10-07T08:34:27.000Z (over 2 years ago)
- Last Synced: 2025-02-17T11:14:04.948Z (over 1 year ago)
- Language: Shell
- Size: 1.31 MB
- Stars: 4
- Watchers: 3
- Forks: 4
- Open Issues: 0
-
Metadata Files:
- Readme: README.org
Awesome Lists containing this project
README
* zwPapEr Dot File
** init system
This is the index of this document,
execute the init src block will init the system.
#+begin_src sh :var software=install-software
echo Done
#+end_src
** Software
Define needed software
#+NAME: mac-software
- ispell
- font-hack-nerd-font
#+NAME: common-software
- lsd
- bat
Install software depend on systems
#+NAME: install-software
#+BEGIN_src sh :var cs=common-software mac=mac-software
function install_software() {
case `uname` in
Darwin)
brew install $cs
brew cask install $mac
;;
Linux)
case `cat /etc/issue | grep -v "^$" | awk '{print $1}'` in
Arch)
sudo pacman -S $cs
;;
esac
;;
esac
}
install_software
#+END_src