version indicator and anal
This commit is contained in:
@@ -33,7 +33,8 @@ status --is-interactive; and begin
|
|||||||
alias vimdiff 'nvim -d'
|
alias vimdiff 'nvim -d'
|
||||||
alias vim 'nvim'
|
alias vim 'nvim'
|
||||||
alias cat batcat
|
alias cat batcat
|
||||||
alias anal 'ansible-playbook -K ~/ansible/debian-sway.yml'
|
alias pkgs 'vim ~/ansible/packages.yml'
|
||||||
|
alias anal 'ansible-playbook -K ~/ansible/packages.yml'
|
||||||
|
|
||||||
# Interactive shell initialisation
|
# Interactive shell initialisation
|
||||||
set -gx GPG_TTY (tty)
|
set -gx GPG_TTY (tty)
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
|
|
||||||
RUNNING_VERSION="$(uname -r | grep -o '[0-9]*\.[0-9]*\.[0-9]*-[0-9]*')"
|
RUNNING_VERSION="$(uname -r | grep -o '[0-9]*\.[0-9]*\.[0-9]*-[0-9]*')"
|
||||||
INSTALLED_VERSION="$(find /boot -maxdepth 0 -name 'vmlinuz*' | grep -o '[0-9]*\.[0-9]*\.[0-9]*-[0-9]*' | sort -r | head -1)"
|
INSTALLED_VERSION="$(find /boot -maxdepth 0 -name 'vmlinuz*' | grep -o '[0-9]*\.[0-9]*\.[0-9]*-[0-9]*' | sort -Vr | head -1)"
|
||||||
|
|
||||||
#echo $RUNNING_VERSION
|
#echo $RUNNING_VERSION
|
||||||
#echo $INSTALLED_VERSION
|
#echo $INSTALLED_VERSION
|
||||||
|
|||||||
Reference in New Issue
Block a user