diff --git a/fish/.config/fish/config.fish b/fish/.config/fish/config.fish index ea648a2..c331bef 100644 --- a/fish/.config/fish/config.fish +++ b/fish/.config/fish/config.fish @@ -35,6 +35,7 @@ set -x CXX /usr/bin/clang++ # 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 $PATH /home/coolneng/.local/bin +set PATH $PATH /home/coolneng/.scripts # fff ## 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_FAV3 /home/coolneng/Nextcloud/Documents/Books/Academic/ set -x FFF_FAV4 /home/coolneng/Nextcloud/Documents/Extracurricular/ + +# Gnome Keyring +if test -n "$DESKTOP_SESSION" + set (gnome-keyring-daemon --start | string split "=") +end diff --git a/scripts/.scripts/subject.sh b/scripts/.scripts/subject.sh new file mode 100755 index 0000000..c4afbcc --- /dev/null +++ b/scripts/.scripts/subject.sh @@ -0,0 +1,17 @@ +#!/bin/sh + +if [ $# -lt 2 ]; then + echo "Usage: subject.sh " +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