Pārlūkot izejas kodu

Small mountremote + osx-config update

Kevin 5 gadi atpakaļ
vecāks
revīzija
2c0f1923c9
3 mainītis faili ar 8 papildinājumiem un 2 dzēšanām
  1. 1 0
      iterm-profiles.json
  2. 3 0
      zsh_local_osx
  3. 4 2
      zshrc

+ 1 - 0
iterm-profiles.json

@@ -381,6 +381,7 @@
               "Blue Component" : 0,
               "Green Component" : 0.53725490196078429
             },
+            "Set Local Environment Vars" : false,
             "Right Option Key Sends" : 0
         }
     ]

+ 3 - 0
zsh_local_osx

@@ -6,6 +6,9 @@ export PATH=/usr/local/texlive/2019/bin/x86_64-darwin:$GOPATH/bin:/usr/local/opt
 export LIBCLANG_PATH=/Library/Developer/CommandLineTools/usr/lib/libclang.dylib
 export CLANG_HEADER=/Library/Developer/CommandLineTools/usr/lib/clang/11.0.0/include
 
+export LANG=en_US.UTF-8
+export LC_CTYPE=en_US.UTF-8
+
 export P=~/Nextcloud/Studium/2016.3\ Promotion
 
 source /opt/root/bin/thisroot.sh

+ 4 - 2
zshrc

@@ -58,8 +58,10 @@ printable-code()
 # mount a remote's ($1) host dir ($2) at $3/$2 or ~/mounts/$2 if $3 is not set
 mountremote () {
   # set the root mount dir
-  mountroot="${3:-$HOME/mounts}";
-  if [ -z "$2" ]; then
+  mountroot="${REMOTE_MOUNT_ROOT:-$HOME/mounts}";
+  if [ -n "$3" ]; then
+      mountpoint=$3
+  elif [ -z "$2" ]; then
       mountpoint=$1-home
   else
       mountpoint=$1-`echo $2 | sed -E "s/\///g"`