work add's
This commit is contained in:
parent
5a6669a5fc
commit
bb68ddcc34
4 changed files with 64 additions and 10 deletions
|
@ -1,9 +1,12 @@
|
||||||
###
|
###
|
||||||
### Macros
|
### Macros
|
||||||
###
|
###
|
||||||
[macros.install__ubuntu]
|
[macros.install__debian]
|
||||||
prefix = ["sudo", "apt-get", "install"]
|
prefix = ["sudo", "apt-get", "install"]
|
||||||
|
|
||||||
|
[macros.install__work]
|
||||||
|
prefix = ["ovh-root", "install"]
|
||||||
|
|
||||||
[macros.install__arch]
|
[macros.install__arch]
|
||||||
prefix = ["sudo", "pacman", "-S"]
|
prefix = ["sudo", "pacman", "-S"]
|
||||||
|
|
||||||
|
@ -40,7 +43,7 @@
|
||||||
templates = [[".gitconfig", "config/gitconfig"]]
|
templates = [[".gitconfig", "config/gitconfig"]]
|
||||||
|
|
||||||
[tasks.zsh]
|
[tasks.zsh]
|
||||||
rejects = [["which", "zsh"]]
|
# rejects = [["which", "zsh"]]
|
||||||
cmds = [
|
cmds = [
|
||||||
["@install", "zsh"],
|
["@install", "zsh"],
|
||||||
["@clone", "--depth=1" ,"https://github.com/robbyrussell/oh-my-zsh.git", ".oh-my-zsh"],
|
["@clone", "--depth=1" ,"https://github.com/robbyrussell/oh-my-zsh.git", ".oh-my-zsh"],
|
||||||
|
|
26
config/tmux
26
config/tmux
|
@ -108,3 +108,29 @@ if-shell "test '#{$TMUX_VERSION_MAJOR} -gt 1 -o \( #{$TMUX_VERSION_MAJOR} -eq 1
|
||||||
if-shell "test '#{$TMUX_VERSION_MAJOR} -gt 1 -o \( #{$TMUX_VERSION_MAJOR} -eq 1 -a #{$TMUX_VERSION_MINOR} -ge 8 \)'" "unbind '\"'; bind '\"' split-window -v -c '#{pane_current_path}'"
|
if-shell "test '#{$TMUX_VERSION_MAJOR} -gt 1 -o \( #{$TMUX_VERSION_MAJOR} -eq 1 -a #{$TMUX_VERSION_MINOR} -ge 8 \)'" "unbind '\"'; bind '\"' split-window -v -c '#{pane_current_path}'"
|
||||||
if-shell "test '#{$TMUX_VERSION_MAJOR} -gt 1 -o \( #{$TMUX_VERSION_MAJOR} -eq 1 -a #{$TMUX_VERSION_MINOR} -ge 8 \)'" 'unbind v; bind v split-window -h -c "#{pane_current_path}"'
|
if-shell "test '#{$TMUX_VERSION_MAJOR} -gt 1 -o \( #{$TMUX_VERSION_MAJOR} -eq 1 -a #{$TMUX_VERSION_MINOR} -ge 8 \)'" 'unbind v; bind v split-window -h -c "#{pane_current_path}"'
|
||||||
if-shell "test '#{$TMUX_VERSION_MAJOR} -gt 1 -o \( #{$TMUX_VERSION_MAJOR} -eq 1 -a #{$TMUX_VERSION_MINOR} -ge 8 \)'" 'unbind %; bind % split-window -h -c "#{pane_current_path}"'
|
if-shell "test '#{$TMUX_VERSION_MAJOR} -gt 1 -o \( #{$TMUX_VERSION_MAJOR} -eq 1 -a #{$TMUX_VERSION_MINOR} -ge 8 \)'" 'unbind %; bind % split-window -h -c "#{pane_current_path}"'
|
||||||
|
|
||||||
|
|
||||||
|
# Make mouse useful in copy mode
|
||||||
|
setw -g mode-mouse on
|
||||||
|
|
||||||
|
# Allow mouse to select which pane to use
|
||||||
|
set -g mouse-select-pane on
|
||||||
|
|
||||||
|
# Allow mouse dragging to resize panes
|
||||||
|
set -g mouse-resize-pane on
|
||||||
|
|
||||||
|
# Allow mouse to select windows
|
||||||
|
set -g mouse-select-window on
|
||||||
|
|
||||||
|
# Allow xterm titles in terminal window, terminal scrolling with scrollbar, and setting overrides of C-Up, C-Down, C-Left, C-Right
|
||||||
|
# (commented out because it disables cursor navigation in vim)
|
||||||
|
#set -g terminal-overrides "xterm*:XT:smcup@:rmcup@:kUP5=\eOA:kDN5=\eOB:kLFT5=\eOD:kRIT5=\eOC"
|
||||||
|
|
||||||
|
# Scroll History
|
||||||
|
set -g history-limit 90000
|
||||||
|
|
||||||
|
# Set ability to capture on start and restore on exit window data when running an application
|
||||||
|
setw -g alternate-screen on
|
||||||
|
|
||||||
|
# Lower escape timing from 500ms to 50ms for quicker response to scroll-buffer access.
|
||||||
|
set -s escape-time 50
|
39
config/zshrc
39
config/zshrc
|
@ -1,4 +1,4 @@
|
||||||
export PATH=$HOME/bin:/usr/local/bin:$PATH
|
export PATH=$HOME/bin:$HOME/toolbox:/usr/local/bin:$PATH
|
||||||
export ZSH=$HOME/.oh-my-zsh
|
export ZSH=$HOME/.oh-my-zsh
|
||||||
|
|
||||||
# See https://github.com/robbyrussell/oh-my-zsh/wiki/Themes
|
# See https://github.com/robbyrussell/oh-my-zsh/wiki/Themes
|
||||||
|
@ -305,11 +305,8 @@ setopt hist_ignore_dups
|
||||||
#export TERM=rxvt-unicode-256color
|
#export TERM=rxvt-unicode-256color
|
||||||
unsetopt rm_star_silent
|
unsetopt rm_star_silent
|
||||||
setopt auto_pushd
|
setopt auto_pushd
|
||||||
alias ls='ls --classify --tabsize=0 --literal --color=auto --show-control-chars --human-readable'
|
|
||||||
alias l='ls'
|
export SSH_KEY_PATH="~/.ssh/work_201806"
|
||||||
alias ll='ls -ahl'
|
|
||||||
alias fr='setxkbmap fr'
|
|
||||||
alias us='setxkbmap us'
|
|
||||||
|
|
||||||
status() {
|
status() {
|
||||||
print ""
|
print ""
|
||||||
|
@ -322,4 +319,32 @@ status() {
|
||||||
print ""
|
print ""
|
||||||
}
|
}
|
||||||
|
|
||||||
alias meteo='curl -4 http://wttr.in/Roubaix'
|
alias fr='setxkbmap fr'
|
||||||
|
alias us='setxkbmap us'
|
||||||
|
alias meteo='curl -4 http://wttr.in/Roubaix'
|
||||||
|
alias dl='wget -r -k -T 5 -t 2 -U '\''Mozilla/5.0 (X11; Linux x86_64; rv:35.0) Gecko/20100101 Firefox/35.0'\'' '
|
||||||
|
alias egrep='egrep --color=auto'
|
||||||
|
alias fgrep='fgrep --color=auto'
|
||||||
|
alias flip='shuf -i 0-1 -n 1 | sed -e '\''s/1/Pile/'\'' -e '\''s/0/Face/'\'''
|
||||||
|
alias grep='grep --color=auto'
|
||||||
|
alias ls='ls --classify --tabsize=0 --literal --color=auto --show-control-chars --human-readable'
|
||||||
|
alias l='ls -CF'
|
||||||
|
alias la='ls -A'
|
||||||
|
alias ll='ls -lah'
|
||||||
|
alias osj='openstack -f json'
|
||||||
|
alias osc='openstack console log show'
|
||||||
|
alias oss='openstack server'
|
||||||
|
alias pass='tr -dc A-Za-z0-9_ < /dev/urandom | head -c 20 | xargs'
|
||||||
|
alias paste='pastebin -m -n Hactar'
|
||||||
|
alias psa='ps auxwwwf'
|
||||||
|
alias toph='top -cHd1'
|
||||||
|
alias vdir='vdir --color=auto'
|
||||||
|
|
||||||
|
alias gw01='z3 gw01.infra.mps.gs.ovh.net'
|
||||||
|
alias hr-admin='z3 root@hr-admin.rungs.ovh'
|
||||||
|
alias public='z3 root@public01.infra.gs.ovh.net'
|
||||||
|
alias thot_cloudweb-robot-preprod='thot '\''wss://thot.ovh.com/tail/?tk=c89ec346-ce0d-4504-b69b-b3c216e91385'\'''
|
||||||
|
alias thot_reseller-robot-preprod='thot '\''wss://thot.ovh.com/tail/?tk=e4bdf746-d041-41d3-81a5-7e4629d3e507'\'''
|
||||||
|
alias m5='sm3 ovh@mozg-mutu5.ovh.ha.ovh.net'
|
||||||
|
alias melt='sm3 gs@mozg-meltingpot.ovh.ha.ovh.net'
|
||||||
|
alias mis='sm3 mozg-mis.ovh.ha.ovh.net'
|
2
init
2
init
|
@ -1,5 +1,5 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
locale -a | grep -i "utf8"
|
locale -a | grep -i "utf8" 2>&1 > /dev/null
|
||||||
if [[ ! $? -eq 0 ]]; then
|
if [[ ! $? -eq 0 ]]; then
|
||||||
echo -e "\033[31;1mPlease install utf8 locale\033[0m"
|
echo -e "\033[31;1mPlease install utf8 locale\033[0m"
|
||||||
exit 1
|
exit 1
|
||||||
|
|
Loading…
Add table
Reference in a new issue