aboutsummaryrefslogtreecommitdiff
path: root/library/cloneDotfiles.sh
blob: 1b9b64a219bb912bef0bc1951455ceea5c442d21 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
#!/bin/bash 

getKdbxFile () {
  read -r passwordFile < <(yadisk-direct https://yadi.sk/d/o4TMFnHFobxTsw)

  wget "$passwordFile" -O $HOME/"$dirArchIsoFiles"/Passwords.kbdx
}

openKeepass () {
  setStatusE true

  keepassxc-cli clip "$dirArchIsoFiles"/Passwords.kdbx github 0 -a token-cli
}

cloneDotfiles () {
  while :
  do 
    openKeepass
    
	  if [ $? -eq 0 ]; then
      setStatusE false
      echo -e "Пароль скопирован!\n"
      break
    fi
  done

  cd
  git clone https://blueingreen68@github.com/blueingreen68/.dotfiles
  wl-copy -c
}

source "$dirArchIsoFiles"/library/setupPkgPipx.sh
cloneDotfiles