Merge branch 'master' of https://github.com/wpcarro/pc_settings
This commit is contained in:
commit
73a836b1dd
4 changed files with 43 additions and 4 deletions
|
|
@ -1,4 +1,4 @@
|
|||
functon npms() {
|
||||
npms() {
|
||||
clear;
|
||||
npm start;
|
||||
}
|
||||
|
|
@ -19,7 +19,6 @@ source $HOME/pc_settings/functions/history_functions.sh
|
|||
# custom functions to work with vim
|
||||
source $HOME/pc_settings/functions/vim_functions.sh
|
||||
|
||||
|
||||
# generates placeholder content for FE work
|
||||
function lorem {
|
||||
text="Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum."
|
||||
|
|
@ -37,3 +36,17 @@ function wsearchpath {
|
|||
echo $PATH | tr ':' '\n' | xargs -I {} find {} -type f -perm +111 -maxdepth 1 -name "*${1}*" -print | xargs basename
|
||||
}
|
||||
|
||||
|
||||
# tests an internet connection
|
||||
function is_online {
|
||||
wget -q --spider "http://google.com"
|
||||
|
||||
if [ $? -eq 0 ]; then
|
||||
echo "Online"
|
||||
return 0
|
||||
else
|
||||
echo "Offline"
|
||||
return 1
|
||||
fi
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue