Templates
parent
cfd2ad4fb6
commit
b02433c10c
|
@ -0,0 +1,6 @@
|
|||
[Desktop Entry]
|
||||
Name=Latex document
|
||||
Comment=A blank latex document
|
||||
Type=Link
|
||||
URL=src/Latex document.tex
|
||||
Icon=text-x-bibtex
|
|
@ -0,0 +1,6 @@
|
|||
[Desktop Entry]
|
||||
Name=Shell script
|
||||
Comment=A blank shell script
|
||||
Type=Link
|
||||
URL=src/Shell script.sh
|
||||
Icon=text-x-script
|
|
@ -0,0 +1,9 @@
|
|||
\documentclass{article} % This command is used to set the type of document you are working on such as an article, book, or presenation
|
||||
|
||||
\usepackage{geometry} % This package allows the editing of the page layout
|
||||
\usepackage{amsmath} % This package allows the use of a large range of mathematical formula, commands, and symbols
|
||||
\usepackage{graphicx} % This package allows the importing of images
|
||||
|
||||
\begin{document}
|
||||
|
||||
\end{document}
|
|
@ -0,0 +1 @@
|
|||
#!/usr/bin/env bash
|
|
@ -0,0 +1,12 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
TEMPLATE_DIR="$HOME/Templates/src"
|
||||
|
||||
src=`ls "$TEMPLATE_DIR" | fzf --preview="$HOME/.dots/scripts/template_preview $TEMPLATE_DIR/{}"`
|
||||
|
||||
if [ -n "$src" ]; then
|
||||
read -p "File name: " name
|
||||
if [ -n "$name" ]; then
|
||||
cp "$TEMPLATE_DIR/$src" "$name" -r
|
||||
fi
|
||||
fi
|
|
@ -0,0 +1,8 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
file="$TEMPLATE_DIR/$1"
|
||||
if [ -d "$file" ]; then
|
||||
tree -C "$file"
|
||||
else
|
||||
bat -pf "$file"
|
||||
fi
|
Loading…
Reference in New Issue