Last active
April 23, 2020 06:35
-
-
Save amekusa/f2dd930167341290582378f9c0d4c126 to your computer and use it in GitHub Desktop.
Boost up your shell
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # -------------------------------- | |
| # BASH Configuration | |
| # Place this at: ~/ | |
| # ================================ | |
| export HOMEBREW_PREFIX="${HOME}/Library/Homebrew" | |
| export HOMEBREW_TEMP="${HOMEBREW_PREFIX}/.tmp" | |
| export NODE_PATH="${HOMEBREW_PREFIX}/lib/node_modules" | |
| export COMPOSER_HOME="${HOME}/.composer" | |
| export ANDROID_HOME="${HOMEBREW_PREFIX}/opt/android-sdk" | |
| export PATH="./node_modules/.bin:./vendor/bin:${COMPOSER_HOME}/vendor/bin:${HOMEBREW_PREFIX}/bin:${HOMEBREW_PREFIX}/sbin:${PATH}" | |
| alias ls="ls -G" | |
| alias ll="ls -l" | |
| alias la="ls -la" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # -------------------------------- | |
| # Tmux Configuration | |
| # Place this at: ~/ | |
| # ================================ | |
| # Fish (or ZSH) Integration | |
| set-option -g default-shell /usr/bin/fish # Linux | |
| #set-option -g default-shell $HOMEBREW_PREFIX/bin/fish # macOS | |
| # Mouse Integration | |
| #set -g mouse on | |
| # Plugins | |
| ## Tmux Resurrect | |
| set -g @plugin 'tmux-plugins/tmux-resurrect' | |
| set -g @resurrect-save 'S' # Shift + S = Save Session | |
| set -g @resurrect-restore 'R' # Shift + R = Restore Session | |
| # Key Bindings | |
| ## Control + A = Prefix | |
| unbind C-b | |
| set-option -g prefix C-a | |
| bind C-a send-prefix | |
| ## -(hyphen) = Split window BELOW | |
| unbind % | |
| bind - split-window -v | |
| ## /(slash) = Split window RIGHT | |
| unbind '"' | |
| bind / split-window -h | |
| ## J/K/I/L = Switch pane | |
| bind j select-pane -L | |
| bind k select-pane -D | |
| bind i select-pane -U | |
| bind l select-pane -R | |
| # Initialize TMUX plugin manager (keep this line at the very bottom of tmux.conf) | |
| # To install TPM, run this: | |
| # $ git clone https://github.com/tmux-plugins/tpm ~/.tmux/plugins/tpm | |
| run '~/.tmux/plugins/tpm/tpm' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # -------------------------------- | |
| # ZSH Configuration | |
| # Place this at: ~/ | |
| # ================================ | |
| # Inherit envs & aliases from BASH | |
| source ~/.profile | |
| # Autocompletion | |
| autoload -Uz compinit && compinit | |
| # cd hook (cd then ls) | |
| function chpwd() { | |
| emulate -L zsh | |
| ls | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # ------------------------------------ | |
| # Some configurations for Oh-My-Zsh | |
| # DO NOT OVERWRITE ~/.zshrc ENTIRELY | |
| # ==================================== | |
| # Recommended plugins | |
| plugins=( | |
| git | |
| z | |
| wd | |
| zsh-autosuggestions | |
| zsh-completions | |
| zsh-syntax-highlighting | |
| ) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # --------------------------------------- | |
| # Fish Configuration | |
| # Place this at: ~/.config/fish/conf.d/ | |
| # ======================================= | |
| # cd then ls | |
| function cd | |
| if count $argv > /dev/null | |
| builtin cd "$argv"; and ls | |
| else | |
| builtin cd ~; and ls | |
| end | |
| end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment