Compare commits
No commits in common. "257998831d79feb94456ba61f1776808e6200796" and "596539adc3ce2246b3a157077b521acfffe0420e" have entirely different histories.
257998831d
...
596539adc3
12
copy.sh
12
copy.sh
|
@ -2,7 +2,6 @@
|
||||||
|
|
||||||
SCRIPT_DIR="$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )"
|
SCRIPT_DIR="$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )"
|
||||||
FAKE_HOME="$SCRIPT_DIR/fake_home"
|
FAKE_HOME="$SCRIPT_DIR/fake_home"
|
||||||
export f="$FAKE_HOME"
|
|
||||||
|
|
||||||
if ! command -v wget &> /dev/null; then
|
if ! command -v wget &> /dev/null; then
|
||||||
echo "wget must be installed!"
|
echo "wget must be installed!"
|
||||||
|
@ -29,14 +28,9 @@ echo "$dotfiles" | while read -r dotfile; do
|
||||||
ln -sf "$dotfile" "$new"
|
ln -sf "$dotfile" "$new"
|
||||||
done
|
done
|
||||||
|
|
||||||
function add-export {
|
if ! grep DOT_DIR $HOME/.zsh_local; then
|
||||||
if ! grep "$1" "$HOME/.zsh_local"; then
|
echo "export DOT_DIR=\"$SCRIPT_DIR\"" >> $HOME/.zsh_local
|
||||||
echo "$1\"$2\"" >> "$HOME/.zsh_local"
|
fi
|
||||||
fi
|
|
||||||
}
|
|
||||||
|
|
||||||
add-export "export DOT_DIR=" "$SCRIPT_DIR"
|
|
||||||
add-export "export f=" "$FAKE_HOME"
|
|
||||||
|
|
||||||
if [[ "$1" == "--files-only" ]]; then
|
if [[ "$1" == "--files-only" ]]; then
|
||||||
exit 0
|
exit 0
|
||||||
|
|
|
@ -1,5 +0,0 @@
|
||||||
class Main {
|
|
||||||
public static void main(String[] args) {
|
|
||||||
System.out.println("Hello, World!");
|
|
||||||
}
|
|
||||||
}
|
|
|
@ -1,14 +0,0 @@
|
||||||
# Heading 1
|
|
||||||
|
|
||||||
Aut impedit numquam quasi libero accusantium. Explicabo error rem vel eius
|
|
||||||
sequi quam omnis. Officia est molestias nemo asperiores deleniti omnis atque.
|
|
||||||
Provident facere itaque ut culpa sapiente sit assumenda.
|
|
||||||
|
|
||||||
## Heading 2
|
|
||||||
|
|
||||||
* This
|
|
||||||
* Is
|
|
||||||
* A
|
|
||||||
* List
|
|
||||||
|
|
||||||
[This is a link](butyouknewthat.com)
|
|
|
@ -164,9 +164,7 @@ if has ("autocmd")
|
||||||
autocmd BufNewFile *.sh 0r ~/.vim/templates/skeleton.sh
|
autocmd BufNewFile *.sh 0r ~/.vim/templates/skeleton.sh
|
||||||
autocmd BufNewFile *.py 0r ~/.vim/templates/skeleton.py
|
autocmd BufNewFile *.py 0r ~/.vim/templates/skeleton.py
|
||||||
autocmd BufNewFile *.rb 0r ~/.vim/templates/skeleton.rb
|
autocmd BufNewFile *.rb 0r ~/.vim/templates/skeleton.rb
|
||||||
autocmd BufNewFile *.md 0r ~/.vim/templates/skeleton.md
|
|
||||||
autocmd BufNewFile *.html 0r ~/.vim/templates/skeleton.html
|
autocmd BufNewFile *.html 0r ~/.vim/templates/skeleton.html
|
||||||
autocmd BufNewFile *.java 0r ~/.vim/templates/skeleton.java
|
|
||||||
autocmd BufNewFile Makefile 0r ~/.vim/templates/Makefile
|
autocmd BufNewFile Makefile 0r ~/.vim/templates/Makefile
|
||||||
augroup END
|
augroup END
|
||||||
endif
|
endif
|
||||||
|
|
Loading…
Reference in New Issue