Skip to content

Instantly share code, notes, and snippets.

View nribeka's full-sized avatar

Nyoman Ribeka nribeka

  • OpenMRS
  • Indianapolis
View GitHub Profile
@nribeka
nribeka / pbcopyfy
Created March 26, 2019 12:41 — forked from garywoodfine/pbcopyfy
Simple Script to configure pbcopy like functionality on ubuntu
#!/bin/sh
# Copyright (C) 2009-2017 Three Nine Consulting
# Always good practice to update packages. However ask user if they would like to do so
# For explanation on how this works and why check out https://garywoodfine.com/use-pbcopy-on-ubuntu/
read -p "Do you want to update your package repositories before proceeding ? " -n 1 -r
echo #adding new line
if [[ $REPLY =~ ^[Yy]$ ]]
then
sudo apt update
sudo apt upgrade -y