mirror of
https://git.decapod.one/brethil/dotfiles
synced 2024-11-23 20:11:31 +01:00
.gitignore | ||
aliases.sh | ||
brethil_dotfile.sh | ||
brethil.zsh-theme | ||
colors.sh | ||
functions.sh | ||
install.sh | ||
README.md | ||
useful_commands |
brethil's dotfiles
Description
- brethil_dotfile.sh: main file sourced by ~/.bash_profile
- aliases.sh: contains alias definitions (sources ~/.bash_aliases)
- functions.sh: contains function definitions (sources ~/.bash_functions)
- colors.sh: contains color definitions
- install.sh: run to install brethil's dotfiles
Installation
Copy the dotfiles folder to the location where you want to keep it and then run install:
$ cd dotfiles && bash install.sh
Installs oh-my-zsh and sources aliases.sh, functions.sh and colors.sh, as well as installing
a a few utilities (see install.sh
)
Installed programs
- oh-my-zsh (zsh config)
- byobu (wrapper/config for tmux, a screen multiplexer)
- grc (generic colourizer, colours output of any command)
- bmon (bandwidth monitor, shows graphs for bandwith usage)
- rmate remote for Textmate (can be called with
mate
/rmate
)
Available Commands
- Quickly edit/reload profile (
esource
/resource
) ramdisk
(only on OSX) create a RAM disk. Default size: 1GB
ramdisk 4
creates a 4GB RAM diskcolor
to print colored text (see 3. in the Misc section):
color red "This will be printed in red"mecp
to copy files back to the machine from wich you are ssh-ing. For this to work an ssh tunnel with Remoteforward is needed: ssh -R 22:localhost:2222 YOURHOSTNAMEHERE or specify this in ~/.ssh/config: Host YOURHOSTNAMEHERE Remoteforward 2222 localhost:22 You might have to manually edit the username in the mecp definition in functions.sh if this is different between the two machines. mecp copies by default on the local machine on ~/Desktop/- Many more. Type "list_functions" to list defined functions and a small description
Files/Folders
~/bin
,~/python
,~/projects
folders- ssh config (
~/.ssh/config
):- Create ssh keys if not defined already
- Keep connections alive by increasing timeout time
- Include multiplexer to allow quick multiple connections to the same host
- (Optional: Compression, this should allow more responsive shells with slow connections,
but will slow things down when copying large files. My suggestion is to have compression enabled
on a by-host basis in
~/.ssh/config
)
- brethil.zsh-theme, theme for oh-my-zsh, installed in ~/.oh-my-zsh/themes/
- ~/.dotfiles_functions, ~/.dotfiles_aliases are sourced by this dotfiles, allowing for custom functions/aliases
- useful_commands contains a list of useful commands (the first rule of the tautology club...)
Misc
- Colored output for
ls
/grep
/man
- Easy names for ANSI color escapes (Black, Red, Green, Yellow, Blue, Cyan, Purple, White, CLEAR),
for example:
echo -e "${Green}This text will be green${CLEAR}"
will result in green text. Use$CLEAR
to clear previous escale sequences add B before the variable name to use bold and U to underline (examples: $BRed, $UBlack for bold red and underlined black)