small tweaks

This commit is contained in:
David Aizenberg
2022-06-13 16:30:40 +01:00
parent 81ab64dacd
commit 0ec123477e
2 changed files with 10 additions and 9 deletions

View File

@@ -11,7 +11,12 @@ EDITOR=vim
getCurrentSKMKey() { getCurrentSKMKey() {
if ! command -v skm &> /dev/null
then
echo "none"
else
skm ls | grep -e '->' | awk '{print $2}' skm ls | grep -e '->' | awk '{print $2}'
fi
} }
export PS1='`date +'%H:%M'`:[\h]|\e[00;33m\]🔑`getCurrentSKMKey`\e[00;0m\]|`pwd` \n\[\e[00;32m\]\u\[\e[0m\]\[\e[00;37m\]$ ' export PS1='`date +'%H:%M'`:[\h]|\e[00;33m\]🔑`getCurrentSKMKey`\e[00;0m\]|`pwd` \n\[\e[00;32m\]\u\[\e[0m\]\[\e[00;37m\]$ '
@@ -93,7 +98,7 @@ if [ -f /etc/bash_completion ]; then
. /etc/bash_completion . /etc/bash_completion
fi fi
export PY_USER_BIN=$(python -c 'import site; print(site.USER_BASE + "/bin")') export PY_USER_BIN=$(python3 -c 'import site; print(site.USER_BASE + "/bin")')
export PATH=$PY_USER_BIN:$PATH export PATH=$PY_USER_BIN:$PATH
export NVM_DIR="$HOME/.nvm" export NVM_DIR="$HOME/.nvm"

View File

@@ -7,7 +7,7 @@ read -p "Install dependencies? [Ubuntu only]" -n 1 -r
echo echo
if [[ $REPLY =~ ^[Yy]$ ]] if [[ $REPLY =~ ^[Yy]$ ]]
then then
sudo apt install curl vim silversearcher-ag nmap neofetch gdebi git ranger tig mycli pgcli fzf jq miller newsboat sudo apt install curl vim silversearcher-ag nmap neofetch git ranger tig mycli fzf jq miller newsboat
fi fi
read -p "Delete old backups? " -n 1 -r read -p "Delete old backups? " -n 1 -r
@@ -70,10 +70,10 @@ ln -rsf .vimrc ~/.vimrc
#git clone https://github.com/neoclide/coc.nvim ~/.vim/pack/plugins/start/coc.nvim #git clone https://github.com/neoclide/coc.nvim ~/.vim/pack/plugins/start/coc.nvim
#cd ~/.vim/pack/plugins/start/coc.nvim && ./install.sh && yarn install --frozen-lockfile #cd ~/.vim/pack/plugins/start/coc.nvim && ./install.sh && yarn install --frozen-lockfile
echo -e "${GREEN} Installing Pathogen ${RESET}" echo -e "${GREEN} Vundle ${RESET}"
mkdir -p ~/.vim/autoload ~/.vim/bundle && \ mkdir -p ~/.vim/autoload ~/.vim/bundle && \
curl -LSso ~/.vim/autoload/pathogen.vim https://tpo.pe/pathogen.vim git clone https://github.com/VundleVim/Vundle.vim.git ~/.vim/bundle/Vundle.vim
mkdir -p ~/.vim/plugin mkdir -p ~/.vim/plugin
git clone git://github.com/mattn/calendar-vim ~/.vim/bundle/calendar-vim git clone git://github.com/mattn/calendar-vim ~/.vim/bundle/calendar-vim
@@ -87,10 +87,6 @@ echo -e "${GREEN} Please run :helptags on first run ${RESET}"
git clone https://github.com/vim-airline/vim-airline ~/.vim/bundle/vim-airline &> /dev/null git clone https://github.com/vim-airline/vim-airline ~/.vim/bundle/vim-airline &> /dev/null
git clone git://github.com/digitaltoad/vim-pug.git &> /dev/null git clone git://github.com/digitaltoad/vim-pug.git &> /dev/null
echo -e "${GREEN} Vundle ${RESET}"
git clone https://github.com/VundleVim/Vundle.vim.git ~/.vim/bundle/Vundle.vim
echo -e "${GREEN} mustang colour theme ${RESET}" echo -e "${GREEN} mustang colour theme ${RESET}"
mkdir -p tmp/ mkdir -p tmp/
git clone https://github.com/croaker/mustang-vim tmp/mustang &> /dev/null git clone https://github.com/croaker/mustang-vim tmp/mustang &> /dev/null