Trims fat and renames files
This commit is contained in:
parent
6021ad3194
commit
4563550969
40 changed files with 233 additions and 352 deletions
39
functions/index.sh
Normal file
39
functions/index.sh
Normal file
|
|
@ -0,0 +1,39 @@
|
|||
functon npms() {
|
||||
clear;
|
||||
npm start;
|
||||
}
|
||||
|
||||
|
||||
# custom js functions
|
||||
source $HOME/pc_settings/functions/js_to_bash.sh
|
||||
|
||||
# custom git functions
|
||||
source $HOME/pc_settings/functions/git_functions.sh
|
||||
|
||||
# custom bash helpers functions
|
||||
source $HOME/pc_settings/functions/misc_functions.sh
|
||||
|
||||
# custom history functions for zle bindkey
|
||||
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."
|
||||
|
||||
echo $text
|
||||
}
|
||||
|
||||
# generates lorem and adds to pasteboard
|
||||
function loremcp {
|
||||
lorem | pbcopy
|
||||
}
|
||||
|
||||
# searches all PATH directories for a keyword
|
||||
function wsearchpath {
|
||||
echo $PATH | tr ':' '\n' | xargs -I {} find {} -type f -perm +111 -maxdepth 1 -name "*${1}*" -print | xargs basename
|
||||
}
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue