mirror of
https://github.com/kp2pml30/dotfiles.git
synced 2026-02-20 00:54:41 +04:00
major ui improvements
This commit is contained in:
parent
8ef03fdd80
commit
3fc17746d0
14 changed files with 143 additions and 9488 deletions
|
|
@ -1,30 +1,6 @@
|
|||
function read_confirm
|
||||
while true
|
||||
read -l -P "$argv [y/N] " confirm
|
||||
|
||||
switch $confirm
|
||||
case Y y
|
||||
return 0
|
||||
case '' N n
|
||||
return 1
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
function fish_greeting
|
||||
if status is-interactive && ! test -f /encrypt/.exists && test -f ~/encrypted.vhdx
|
||||
if test -f /tmp/.skip-encrypt
|
||||
echo "Encrypted drive not installed"
|
||||
return
|
||||
end
|
||||
touch /tmp/.skip-encrypt
|
||||
if read_confirm "Setup encrypted drive?"
|
||||
set home "$HOME"
|
||||
printf "su "
|
||||
sudo bash -c "losetup /dev/loop0 '$HOME/encrypted.vhdx' && cryptsetup open /dev/loop0 loop0 && mount /dev/mapper/loop0 /encrypt"
|
||||
echo "success: $status"
|
||||
end
|
||||
end
|
||||
alias clear="printf '\033[2J\033[3J\033[1;1H'"
|
||||
if test -f ~/.bashrc
|
||||
bass source ~/.bashrc
|
||||
end
|
||||
|
||||
if status is-interactive
|
||||
|
|
@ -32,18 +8,3 @@ if status is-interactive
|
|||
zoxide init fish | source
|
||||
end
|
||||
end
|
||||
#if test -f ~/.ghcup/env
|
||||
# bass source ~/.ghcup/env
|
||||
#end
|
||||
#if test -x ~/.rbenv/bin/rbenv
|
||||
# ~/.rbenv/bin/rbenv init - fish | source
|
||||
#end
|
||||
#if test -f ~/.opam/opam-init/init.fish
|
||||
# source ~/.opam/opam-init/init.fish
|
||||
#end
|
||||
alias clear="printf '\033[2J\033[3J\033[1;1H'"
|
||||
export PATH="$PATH:$KP2PATH"
|
||||
if set -uq KP2COMPLETIONS
|
||||
eval "$KP2COMPLETIONS"
|
||||
end
|
||||
bass source ~/.bashrc
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue