Skip to content

olafur-palsson/terminal

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

43 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Instructions

Copy .bashrc into your $HOME

Need docs on the fly?

Try...

helpme

Terminal

disk_use() { ... }
    Show disk usage of each folder in a folder

killregex() { ... }
    Kill process by regex expression

update
    Update and upgrade all

sedpp() { ... }
    Sedpipe with less writing, use like 'ls * | sedpp replaceThis withThis'

sedpipe
    Use sed with the pipe like this 'ls * | sedpipe "s/replaceThis/withThis/"' or some other s command

showcolors() { ... }
    Display all 256 terminal colors

searchhistory
    Search history of bash

watch_do() { ... }
    Probably the best bash function I have made

Devops

Git

githardreset
    Force get the latest updates from master

squashbranch() { ... }
    Create diff from branch $1 and push -f to branch $2

AWS

GCLOUD

History

Less pipe

Prompt

----- Old prompt

Autocomplete

Current project shortcuts

Variables

Couple of fun shortcuts

This is what should be stored as your root .bashrc

Languages

Python

upgradepip() { ... }
    Upgrade pip, use upgradepip2 or upgradepip3 to only upgrade those

pybook
    Simple alias for 'jupyter notebook'

C++

newcpp() { ... }
    Creates a new cpp file with an acompanying header file as .cpp and .hpp

gppp() { ... }
    compile with output file as 'filename.o' with std=c++17

autocompilecpp() { ... }
    watch folder $1 for anything that matches $2 then on close_write do $3

Java

Hubstaff

hubstaffreport() { ... }
    Open reports

hubstaffweek() { ... }
    Open weekly overview

hubstafftoday() { ... }
    Open overview for today

hubstaffyesterday() { ... }
    Yesterdays report

Tmux

t
    Attach to tmux session 'normal', handy for the tmux-resurrect megasession

tkillall() { ... }
    Kill all tmux instances

Tmuxinator

proj() { ... }
    Shorthand for tmuxinator $2 $1, default to restarting

dexter() { ... }
    Run Dexter front-end

dexusedev() { ... }
    Use dev credentials

dexuseprod() { ... }
    Use prod credentials

dexshell() { ... }
    Run the shell for firebase functions

helpme() { ... }
    Show help docs

Backup

setupAll() { ... }
    Sets up all of the setups from scripts (broken)

backupAtom() { ... }
    Backup atom package list

setupAtom() { ... }
    Install atom package list

KDE

nightmodeupdate() { ... }
    Apply night mode

Task Warrior

tt
    View what is due in the next 7 days on taskwarrior

ttn
    View next due task

ttv
    All containing the word 'Verk' (i.e. work material)

Calculator

calc
    Run calculator

calcedit
    Edit the calculator script

dexter() { ... }
    Run Dexter front-end

dexusedev() { ... }
    Use dev credentials

dexuseprod() { ... }
    Use prod credentials

dexshell() { ... }
    Run the shell for firebase functions

Terminal

disk_use() { ... }
    Show disk usage of each folder in a folder

killregex() { ... }
    Kill process by regex expression

refresh_process() { ... }
    Kills all processes that match $1, if $2 is provided, run $2 else run $1

update
    Update and upgrade all

sedpp() { ... }
    Sedpipe with less writing, use like 'ls * | sedpp replaceThis withThis'

sedpipe
    Use sed with the pipe like this 'ls * | sedpipe "s/replaceThis/withThis/"' or some other s command

showcolors() { ... }
    Display all 256 terminal colors

searchhistory
    Search history of bash

watch_do() { ... }
    Probably the best bash function I have made

Devops

Git

githardreset
    Force get the latest updates from master

ch
    git checkout shortcut

st
    git status shortcut

add
    git add shortcut

push
    git push shortcut

pull
    git pull shortcut

pullr
    git pull shortcut

reb
    git pull shortcut

rebi
    git pull shortcut

squashbranch() { ... }
    Create diff from branch $1 and push -f to branch $2

AWS

GCLOUD

History

Less pipe

Prompt

----- Old prompt

Autocomplete

sobash
    Source bash

seeya
    Hibernate

bye
    Shut down

This is what should be stored as your root .bashrc

Languages

Python

upgradepip() { ... }
    Upgrade pip, use upgradepip2 or upgradepip3 to only upgrade those

pybook
    Simple alias for 'jupyter notebook'

C++

newcpp() { ... }
    Creates a new cpp file with an acompanying header file as .cpp and .hpp

gppp() { ... }
    compile with output file as 'filename.o' with std=c++17

autocompilecpp() { ... }
    watch folder $1 for anything that matches $2 then on close_write do $3

Java

Hubstaff

hubstaffreport() { ... }
    Open reports

hubstaffweek() { ... }
    Open weekly overview

hubstafftoday() { ... }
    Open overview for today

hubstaffyesterday() { ... }
    Yesterdays report

Tmux

t
    Attach to tmux session 'normal', handy for the tmux-resurrect megasession

tkillall() { ... }
    Kill all tmux instances

Tmuxinator

proj() { ... }
    Shorthand for tmuxinator $2 $1, default to restarting

helpme() { ... }
    Show help docs

Backup

setupAll() { ... }
    Sets up all of the setups from scripts (broken)

backupAtom() { ... }
    Backup atom package list

setupAtom() { ... }
    Install atom package list

git
    git 'subcommands'

# completion style.  For example '!f() { : git commit ; ... }; f' will ... }
    command ':' as the first command in the function body to declare the desired

the
    completion style.  For example '!f() { : git commit ; ... }; f' will

# Accepts the same positional parameters as __git_heads() above. ... }
    Lists tags from the local repository.

# Deprecated: use __git_complete_fetch_refspecs() instead. ... }
    git_refs2 requires 1 argument (to pass to __git_refs)

aliased_command
    git_aliased_command requires 1 argument

ommand
    Setup the completion for git commands

KDE

nightmodeupdate() { ... }
    Apply night mode

Task Warrior

tt
    View what is due in the next 7 days on taskwarrior

ttn
    View next due task

ttv
    All containing the word 'Verk' (i.e. work material)

###-begin-npm-completion-###

###-end-npm-completion-###

Calculator

calc
    Run calculator

calcedit
    Edit the calculator script

History

Less pipe

Prompt

----- Old prompt

Autocomplete

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages