diff --git a/.zshrc b/.zshrc index ed8d669..7c91935 100644 --- a/.zshrc +++ b/.zshrc @@ -41,10 +41,12 @@ alias ll="exa -l --color=always --group-directories-first" alias lt="exa -aT --color=always --group-directories-first" alias l.='exa -a | egrep "^\."' -#cat ~/.cache/wal/sequences & - # WSL2 -#source ~/scripts/custom_env.sh +if [[ $JUPCID == "WSL" ]];then + VETHER_IP=$(/bin/grep nameserver /etc/resolv.conf 2> /dev/null | /bin/tr -s ' ' | /bin/cut -d' ' -f2) + export DISPLAY=$VETHER_IP:10.0 +fi + # python env export PYTHONSTARTUP=~/scripts/my_imports.py diff --git a/scripts/custom_env.sh b/scripts/custom_env.sh deleted file mode 100755 index 3effb87..0000000 --- a/scripts/custom_env.sh +++ /dev/null @@ -1,9 +0,0 @@ -#!/bin/bash - -# configurable parameter -JAEUS_ENV="WSL" - -if [[ $JAEUS_ENV == "WSL" ]];then - VETHER_IP=$(/bin/grep nameserver /etc/resolv.conf 2> /dev/null | /bin/tr -s ' ' | /bin/cut -d' ' -f2) - export DISPLAY=$VETHER_IP:10.0 -fi diff --git a/scripts/hyperv_mount_settings.sh b/scripts/hyperv_mount_settings.sh deleted file mode 100755 index b4ca49b..0000000 --- a/scripts/hyperv_mount_settings.sh +++ /dev/null @@ -1,23 +0,0 @@ -#!/bin/sh - -echo "====================================" -echo "Share Directory Mount?(y/N)?" -echo ${whoami} -read val -if [ "${val}" == "" ]; then - val="N" -fi - -if [ "${val}" == "y" ];then - echo "address(ex://192.168.1.144/d)?" - read addr - echo "user(ex:JaeUs-HV)?" - read user - echo "password?" - read pass - echo "mount point(ex:/home/jaeus/mnt)?" - read mpoint - - sudo echo "${addr} ${mpoint} cifs _netdev,nofail,username=${user},password=${pass},uid=jaeus,gid=jaeus 0 0" >> /etc/fstab -fi - diff --git a/scripts/update_od.sh b/scripts/update_od.sh deleted file mode 100644 index 98cf783..0000000 --- a/scripts/update_od.sh +++ /dev/null @@ -1,19 +0,0 @@ -#!/bin/bash - -# update my linux config -cd ~/.dotfiles -git pull - -# update linux packages -paru -# update bitwarden -cd ~/server/bitwarden_docker -sudo docker-compose down -sudo docker-compose pull -sudo docker-compose up -d -# wetty -yarn global upgrade wetty -# doom emacs upgrade -~/.emacs.d/bin/doom upgrade - - diff --git a/scripts/wsl_init_daemon.sh b/scripts/wsl_init_daemon.sh deleted file mode 100755 index 01a45ec..0000000 --- a/scripts/wsl_init_daemon.sh +++ /dev/null @@ -1,10 +0,0 @@ -# SSH Daemon -sudo /bin/sshd - -# Cron -sudo /bin/crond - -# Ip config ( When Netcus desktop ) -sudo ip addr add dev eth0 192.168.144.2/24 -sudo ip addr add dev eth0 192.168.1.146/24 -