Add scripts and include them in the path

This commit is contained in:
coolneng 2019-09-16 15:07:01 +02:00
parent b15a573717
commit f1afe46bd9
2 changed files with 23 additions and 0 deletions

View File

@ -35,6 +35,7 @@ set -x CXX /usr/bin/clang++
# Additional paths # Additional paths
set PATH /opt/texlive/2019/bin/x86_64-linux/ /bin /usr/bin /usr/local/bin /usr/local/sbin /usr/sbin /sbin set PATH /opt/texlive/2019/bin/x86_64-linux/ /bin /usr/bin /usr/local/bin /usr/local/sbin /usr/sbin /sbin
set PATH $PATH /home/coolneng/.local/bin set PATH $PATH /home/coolneng/.local/bin
set PATH $PATH /home/coolneng/.scripts
# fff # fff
## Directory color [0-9] ## Directory color [0-9]
@ -45,3 +46,8 @@ set -x FFF_FAV1 /home/coolneng/Nextcloud/Documents/Archive-uni/Second\ year/
set -x FFF_FAV2 /home/coolneng/Nextcloud/Documents/Papers set -x FFF_FAV2 /home/coolneng/Nextcloud/Documents/Papers
set -x FFF_FAV3 /home/coolneng/Nextcloud/Documents/Books/Academic/ set -x FFF_FAV3 /home/coolneng/Nextcloud/Documents/Books/Academic/
set -x FFF_FAV4 /home/coolneng/Nextcloud/Documents/Extracurricular/ set -x FFF_FAV4 /home/coolneng/Nextcloud/Documents/Extracurricular/
# Gnome Keyring
if test -n "$DESKTOP_SESSION"
set (gnome-keyring-daemon --start | string split "=")
end

17
scripts/.scripts/subject.sh Executable file
View File

@ -0,0 +1,17 @@
#!/bin/sh
if [ $# -lt 2 ]; then
echo "Usage: subject.sh <subject name> <subject type>"
fi
name=$1
type=$2
if [ "$type" -eq 0 ]; then
mkdir -p "$name"/Code
mkdir -p "$name"/TP
mkdir -p "$name"/Exos
else
mkdir -p "$name"/TP
mkdir -p "$name"/Exos
fi