Compare commits

..

No commits in common. "0b9532e95bd1c5f4285082fcc5aac74c3c086d42" and "fe6642402b72aa3fa6fe9a7b1c3e3d0a92368448" have entirely different histories.

6 changed files with 8 additions and 30 deletions

View File

@ -1,6 +1,5 @@
#/bin/bash
if (command -v lazygit &> /dev/null)
# Lazygit
if ( which lazygit &> /dev/null )
then
alias lg=lazygit
alias lg='lazygit'
fi

View File

@ -1,6 +1,5 @@
#!/bin/bash
if (command -v lsd &> /dev/null)
# LSD
if ( command -v lsd &> /dev/null )
then
alias ls=lsd
alias ls='lsd'
fi

View File

@ -14,10 +14,8 @@ genpasswd() {
[ "$l" == "" ] && l=12
local password_clear=$(tr -dc A-Za-z0-9_ < /dev/urandom | head -c ${l} | xargs)
local password_md5hash=$(openssl passwd -1 $password_clear)
local password_sha1=$(echo -n "$password_clear" | openssl dgst -sha1)
local password_base64=$(echo -n "$password_clear" | base64)
local password_sha1=$(echo -n $password_clear | openssl dgst -sha1)
echo "Password : $password_clear"
echo "Base64 : $password_base64"
echo "MD5HASH : $password_md5hash"
echo "SHA1 : $password_sha1"
}

View File

@ -1,9 +0,0 @@
#!/bin/bash
_path_add() {
if [ -d "$1" ] && [[ ":$PATH:" != *":$1:"* ]]; then
PATH="${PATH:+"$PATH:"}$1"
fi
}
# Source : https://superuser.com/questions/39751/add-directory-to-path-if-its-not-already-there

View File

@ -1,9 +0,0 @@
#!/bin/bash
_prompt_command_add() {
if [ -n "$1" ] && [[ ":$PROMPT_COMMAND:" != *":$1:"* ]]; then
PROMPT_COMMAND="${PROMPT_COMMAND:+"$PROMPT_COMMAND;"}$1"
fi
}
export PROMPT_COMMAND

View File

@ -13,7 +13,7 @@ if [ "${POWERLINE}" = "powerline-go" ]; then
PS1=$($POWERLINE -jobs "$(jobs -p | wc -l)" -error $? -modules "ssh,host,wsl,user,cwd,direnv,venv,perms,git,jobs,exit,root" -modules-right "docker,docker-context,kube,terraform-workspace,termtitle" -newline)
}
if [ "$TERM" != "linux" ]; then _prompt_command_add "_update_ps1" ; fi
if [ "$TERM" != "linux" ]; then PROMPT_COMMAND="$PROMPT_COMMAND; _update_ps1"; fi
elif [ "${POWERLINE}" = "powerline" ]; then