Skip to content

Commit

Permalink
initial commit from mac
Browse files Browse the repository at this point in the history
  • Loading branch information
Steve Grehl authored and Steve Grehl committed Apr 16, 2022
0 parents commit 5ec2b64
Show file tree
Hide file tree
Showing 2 changed files with 220 additions and 0 deletions.
103 changes: 103 additions & 0 deletions .tmux.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,103 @@
#tmux configuration file

# use UTF8
set -gq utf8 on
set-window-option -gq utf8 on

# make tmux display things in 256 colors
set -g default-terminal "screen-256color"
set-option -g default-shell /bin/zsh

set -g display-time 3000
set -g escape-time 0
set -g base-index 1
set -g pane-base-index 1

# set scrollback history to 10000 (10k)
set -g history-limit 10000

# set ^ as default prefix key
set -g prefix ^
set -g prefix C-b
#set -g prefix2 C-a


#bind ^ send-prefix

# write text to all panes in window
bind a set-window-option synchronize-panes

bind | split-window -h
bind - split-window -v
bind + split-window -h \; split-window -v \; select-pane -U \; select-pane -L \; split-window -v

bind r source ~/.tmux.conf

#bind y run-shell "tmux save-buffer - | xclip -sel clip -i && tmux display-message 'buffer copied to clipboard'"
#bind y show-buffer \; pipe-pane "xclip -sel clip -i"
bind y run-shell "tmux show-buffer | xclip -sel clip -i > /dev/null && tmux display-message 'buffer copied to clipboard'"

#Use Shift-arrow to switch windows
bind -n S-Left previous-window
bind -n S-Right next-window

# Use Alt-arrow keys without prefix key to switch panes
bind -n M-Left select-pane -L
bind -n M-Right select-pane -R
bind -n M-Up select-pane -U
bind -n M-Down select-pane -D

set -g mouse on
#set -g mode-mouse on
#set -g mouse-resize-pane on
#set -g mouse-select-pane on
#set -g mouse-select-window on

#set -g mouse-utf8 off

# from http://superuser.com/a/326592/160502
# "I don't know what it does, but it is pure genius. Finally, tmux scrolling works, yay!"
set -g terminal-overrides 'xterm*:smcup@:rmcup@'


# modes
setw -g clock-mode-colour colour2
setw -g mode-style bold,fg="#101030",bg=colour3

# panes
set -g pane-border-style fg="#3e3e3e"
set -g pane-active-border-style fg=colour2


# statusbar layout:
# left: |hostname|»

# some colors:
# light-green #7ea225
# light-yellow #a39325
# light-blue #2579a4
# less saturated blue #587785

# statusbar

set -g status-interval 1

set -g status-justify left
set -g status-style bg="#3e3e3e",fg="#b4b4b4",bright
set -g status-left "⚒ #[fg=#7ea225]#{host} #[fg=#a39325]#{session_name} #[fg=#587785]w#I.p#P#[fg=#587785]#[default]⚒ "
set -g status-left-style bright
set -g status-left-length 60
set -g status-right " #[fg=#2579a4]#{pane_title}#[default] » #[fg=#587785]#{pane_current_command}"
set -g status-right-style bright
set -g status-right-length 80

setw -g window-status-style bg="#4e4e4e"
setw -g window-status-format "#{window_index}:#{window_name}#[fg=#587785][#{window_panes}]"

setw -g window-status-current-style fg="#101030",fg="#9faf9f",bold
setw -g window-status-current-format "#[bg=#3e3e3e]#[fg=#7ea225]◀#[default] #{window_index}:#{window_name}#[fg=#587785][#{window_panes}] #[bg=#3e3e3e]#[fg=#7ea225]▶"

setw -g window-status-activity-style fg=color5,bg=color160,bold

# messages
set -g message-style bg=colour13,fg=black,dim
117 changes: 117 additions & 0 deletions .zshrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,117 @@
# If you come from bash you might have to change your $PATH.
export PATH=$HOME/bin:/usr/local/bin:/opt/homebrew/bin:$PATH

# Path to your oh-my-zsh installation.
export ZSH="/Users/sgrehl/.oh-my-zsh"

# Set name of the theme to load --- if set to "random", it will
# load a random theme each time oh-my-zsh is loaded, in which case,
# to know which specific one was loaded, run: echo $RANDOM_THEME
# See https://github.com/ohmyzsh/ohmyzsh/wiki/Themes
ZSH_THEME="awesomepanda"

# Set list of themes to pick from when loading at random
# Setting this variable when ZSH_THEME=random will cause zsh to load
# a theme from this variable instead of looking in $ZSH/themes/
# If set to an empty array, this variable will have no effect.
# ZSH_THEME_RANDOM_CANDIDATES=( "robbyrussell" "agnoster" "awesomepanda")

# Uncomment the following line to use case-sensitive completion.
# CASE_SENSITIVE="true"

# Uncomment the following line to use hyphen-insensitive completion.
# Case-sensitive completion must be off. _ and - will be interchangeable.
HYPHEN_INSENSITIVE="true"

# Uncomment the following line to disable bi-weekly auto-update checks.
# DISABLE_AUTO_UPDATE="true"

# Uncomment the following line to automatically update without prompting.
# DISABLE_UPDATE_PROMPT="true"

# Uncomment the following line to change how often to auto-update (in days).
# export UPDATE_ZSH_DAYS=13

# Uncomment the following line if pasting URLs and other text is messed up.
# DISABLE_MAGIC_FUNCTIONS="true"

# Uncomment the following line to disable colors in ls.
# DISABLE_LS_COLORS="true"

# Uncomment the following line to disable auto-setting terminal title.
# DISABLE_AUTO_TITLE="true"

# Uncomment the following line to enable command auto-correction.
# ENABLE_CORRECTION="true"

# Uncomment the following line to display red dots whilst waiting for completion.
# Caution: this setting can cause issues with multiline prompts (zsh 5.7.1 and newer seem to work)
# See https://github.com/ohmyzsh/ohmyzsh/issues/5765
# COMPLETION_WAITING_DOTS="true"

# Uncomment the following line if you want to disable marking untracked files
# under VCS as dirty. This makes repository status check for large repositories
# much, much faster.
# DISABLE_UNTRACKED_FILES_DIRTY="true"

# Uncomment the following line if you want to change the command execution time
# stamp shown in the history command output.
# You can set one of the optional three formats:
# "mm/dd/yyyy"|"dd.mm.yyyy"|"yyyy-mm-dd"
# or set a custom format using the strftime function format specifications,
# see 'man strftime' for details.
# HIST_STAMPS="mm/dd/yyyy"

# Would you like to use another custom folder than $ZSH/custom?
# ZSH_CUSTOM=/path/to/new-custom-folder

# Which plugins would you like to load?
# Standard plugins can be found in $ZSH/plugins/
# Custom plugins may be added to $ZSH_CUSTOM/plugins/
# Example format: plugins=(rails git textmate ruby lighthouse)
# Add wisely, as too many plugins slow down shell startup.
plugins=(git)

source $ZSH/oh-my-zsh.sh

# User configuration

export MANPATH="/usr/local/man:$MANPATH"

# You may need to manually set your language environment
export LANG=de_DE.UTF-8

# Preferred editor for local and remote sessions
if [[ -n $SSH_CONNECTION ]]; then
export EDITOR='vim'
else
export EDITOR='mvim'
fi

# Compilation flags
# export ARCHFLAGS="-arch x86_64"

# Set personal aliases, overriding those provided by oh-my-zsh libs,
# plugins, and themes. Aliases can be placed here, though oh-my-zsh
# users are encouraged to define aliases within the ZSH_CUSTOM folder.
# For a full list of active aliases, run `alias`.

# Example aliases
alias zshconfig="mate ~/.zshrc"
alias ohmyzsh="mate ~/.oh-my-zsh"

# >>> conda initialize >>>
# !! Contents within this block are managed by 'conda init' !!
__conda_setup="$('/Users/sgrehl/opt/anaconda3/bin/conda' 'shell.zsh' 'hook' 2> /dev/null)"
if [ $? -eq 0 ]; then
eval "$__conda_setup"
else
if [ -f "/Users/sgrehl/opt/anaconda3/etc/profile.d/conda.sh" ]; then
. "/Users/sgrehl/opt/anaconda3/etc/profile.d/conda.sh"
else
export PATH="/Users/sgrehl/opt/anaconda3/bin:$PATH"
fi
fi
unset __conda_setup
# <<< conda initialize <<<

0 comments on commit 5ec2b64

Please sign in to comment.