X-Git-Url: https://feistymeow.org/gitweb/?a=blobdiff_plain;f=scripts%2Fcore%2Fcommon.alias;h=430b14aeb6b238bfed692137d926f69bb10b5aba;hb=refs%2Fheads%2Fmain;hp=2c8b6ec9803d8e10d916b7e255ae3a7d8fdf11d6;hpb=2d76e8a00509a58fc64e67080689a7f82c022d74;p=feisty_meow.git diff --git a/scripts/core/common.alias b/scripts/core/common.alias index 2c8b6ec9..bb3d1aff 100644 --- a/scripts/core/common.alias +++ b/scripts/core/common.alias @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash ############## # Name : common.alias # Author : Chris Koeritz @@ -14,7 +14,6 @@ ############## # make our functions available to the aliases. -#hmmm: should this be necessary? will it even work? source "$FEISTY_MEOW_SCRIPTS/core/functions.sh" ############## @@ -37,7 +36,7 @@ define_yeti_alias copy='\cp -i -v' define_yeti_alias cp='\cp -i -v' define_yeti_alias del='perl $FEISTY_MEOW_SCRIPTS/files/safedel.pl' define_yeti_alias deltree='perl $FEISTY_MEOW_SCRIPTS/files/safedel.pl' -define_yeti_alias df='\df -mh' +define_yeti_alias df='clean_df -h' define_yeti_alias dir='perl $FEISTY_MEOW_SCRIPTS/files/summing_dir.pl' define_yeti_alias du='\du -h' define_yeti_alias erase='perl $FEISTY_MEOW_SCRIPTS/files/safedel.pl' @@ -47,11 +46,11 @@ if [ "$OS" != "Windows_NT" ]; then if [ -n "$IS_DARWIN" ]; then # case for mac os x. define_yeti_alias exp='open' - elif [ ! -z "$(which dolphin 2>/dev/null)" ]; then + elif [ ! -z "$(whichable dolphin)" ]; then # we prefer dolphin if available. define_yeti_alias exp='screen -L -S dolphin-$RANDOM -d -m dolphin ' #--select - elif [ ! -z "$(which nautilus 2>/dev/null)" ]; then + elif [ ! -z "$(whichable nautilus)" ]; then # launch nautilus if available. define_yeti_alias exp='nautilus' else @@ -66,9 +65,11 @@ fi define_yeti_alias explorer=exp define_yeti_alias fix_ssh_perms='chmod 700 $HOME/.ssh ; chmod 600 $HOME/.ssh/*' define_yeti_alias get_feisty='rpuffer $FEISTY_MEOW_APEX; regenerate' +define_yeti_alias get_nets='ifconfig | sed -n -e "s/^\(e[a-z0-9]*\):.*$/\1/p" | awk "{ print \$1 }"' define_yeti_alias halt='sudo shutdown -h now' define_yeti_alias i=inventory define_yeti_alias l='perl $FEISTY_MEOW_SCRIPTS/files/summing_dir.pl' +define_yeti_alias larch='list_arch' define_yeti_alias ll='ls_dot_add=-a perl $FEISTY_MEOW_SCRIPTS/files/summing_dir.pl' define_yeti_alias ls='ls -HhFC $color_add' define_yeti_alias lsd='ls -hl' @@ -76,13 +77,14 @@ define_yeti_alias md='mkdir' define_yeti_alias move='mv -i -v' define_yeti_alias mv='\mv -i -v' define_yeti_alias netcp='rsync -avz' +define_yeti_alias netcpl='rsync -av' define_yeti_alias notepad='gedit' define_yeti_alias pwd="/bin/pwd|sed -e 's/^\/home\/$USER/~/'" define_yeti_alias rd='perl $FEISTY_MEOW_SCRIPTS/files/zapdirs.pl' define_yeti_alias ren='\mv -v -i' define_yeti_alias rm='perl $FEISTY_MEOW_SCRIPTS/files/safedel.pl' define_yeti_alias rmdir='perl $FEISTY_MEOW_SCRIPTS/files/zapdirs.pl' -define_yeti_alias s='echo "##############"' +define_yeti_alias s='sep 14 "#"' define_yeti_alias path='echo $PATH' define_yeti_alias whence=which @@ -101,6 +103,7 @@ define_yeti_alias cd...='\cd ../..' define_yeti_alias cd....='\cd ../../..' define_yeti_alias cd.....='\cd ../../../..' define_yeti_alias np='gvim' +define_yeti_alias retval='errval=$?; if [ $errval -ne 0 ]; then echo "error code $errval occurred for last command."; else echo "all was well with last command."; fi' define_yeti_alias up='cd ..' ############## @@ -132,6 +135,9 @@ define_yeti_alias play='bash $FEISTY_MEOW_SCRIPTS/multimedia/sound_play.sh' # some really eccentric feisty meow aliases... +# launches a bash session in the background using the screen command. +define_yeti_alias bashido='screen -L -S bashido -d -m bash' + # says goodbye when leaving a shell. define_yeti_alias bye='. $FEISTY_MEOW_SCRIPTS/processes/goodbye.sh' @@ -149,10 +155,11 @@ define_yeti_alias why='echo We all wonder what the point of the universe is at t ############## -# remove the "fredization" or "feistymeowization" macros if they're defined, -# which reduces the chance of loading the shell environment twice for users -# like root that don't load feisty meow automatically. -unalias fredme feistyme &>/dev/null +# remove the "feistymeowization" macro if defined, which reduces the chance of +# loading the shell environment twice for users like root who don't load +# feisty meow automatically. +unalias gofeisty &>/dev/null +unalias fredme &>/dev/null ##############