Compare commits

32 Commits
Author SHA1 Message Date
marc e704c6ce6e mering 2021-02-17 00:15:23 +01:00
marc e5384aa7e2 moving python to aliases.sh 2021-02-17 00:14:44 +01:00
marc 5ad229f60c Merge branch 'main' of https://github.com/MarcPartensky/Dotfiles into main 2021-02-16 22:08:00 +00:00
marc cdf95fb8bb pyenv path + ls colors + no tshark 2021-02-16 22:07:56 +00:00
marc 8efa2b710d better pip 2021-02-16 23:07:03 +01:00
marc bfef7cfa79 switch case os start.sh 2021-02-16 20:05:38 +01:00
marc bc1a35217c activate venv not env 2021-02-06 02:16:46 +01:00
marc 31fba7f4e9 corrected main.sh 2021-02-06 00:41:31 +00:00
marc 0a1b261c8f better colors for powerlevel10k 2021-02-05 21:24:50 +01:00
marc 3b2d99d02c Merge branch 'main' of https://github.com/MarcPartensky/Dotfiles into main 2021-02-05 14:48:57 +01:00
marc 8ea6d83267 added servant alias 2021-02-05 14:48:52 +01:00
marc 6e239a0f94 moved desktop icon commands 2021-02-05 13:48:07 +00:00
marc 5047b28634 Merge branch 'main' of https://github.com/MarcPartensky/Dotfiles into main 2021-02-04 21:38:18 +00:00
marc 65bde9a166 not upper case to be linux friendly 2021-02-04 21:38:03 +00:00
marc 516a491914 programs path done right 2021-02-04 20:39:24 +01:00
marc 61d08a37bc sent p10k config 2021-02-04 18:19:02 +01:00
marc fe380270f6 environment agnostic handling of aliases 2021-02-04 17:13:40 +00:00
marc 0808769cc1 no grep options because deprecated 2021-02-04 16:54:42 +00:00
marc aa4f403326 added .zshenv and few edits 2021-02-04 17:39:51 +01:00
marc c2dd72a8b4 messed up binding cmd + i 2021-01-30 17:35:35 +01:00
marc 07f75eaf73 added alacritty config 2021-01-25 11:10:19 +01:00
marc c7a7dde968 fixed grep options bug 2021-01-13 01:11:32 +01:00
marc df3bb8b63c better navigation 2021-01-11 22:56:48 +01:00
marc 81c239014e dot aliases 2021-01-11 22:52:11 +01:00
marc 345343469e sourcing antigen in homebrew dir 2021-01-09 04:03:09 +01:00
marc e1f6fbb3f2 not antigen cache 2021-01-09 03:30:07 +01:00
marc 5388ef4a75 antigen cache reset 2021-01-09 03:29:05 +01:00
marc a606c10f02 installs folder + theme 2021-01-03 21:18:34 +01:00
marc b4969ceccd aliases 2021-01-03 20:02:24 +01:00
marc 442dbf6c71 aliases + functions + exports 2021-01-03 19:59:49 +01:00
marc 1807c3fcc7 readme 2021-01-03 19:49:20 +01:00
marc e3ef673f85 all in once 2021-01-03 19:46:31 +01:00
20 changed files with 4982 additions and 66 deletions
+1561
View File
File diff suppressed because it is too large Load Diff
+14
View File
@@ -0,0 +1,14 @@
unbind C-b
set -g prefix C-a
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
setw -g monitor-activity on
set -g visual-activity on
set-window-option -g window-status-current-bg yellow
set-option -g mouse-select-pane on
+160
View File
@@ -0,0 +1,160 @@
alias v=nvim
alias restart='exec $SHELL'
alias ez='nvim ~/.zshrc'
alias e='nvim ~/.zshenv'
alias mem="du -sh"
alias memfiles="du -sh * | sort -rh;"
alias vimrc='nvim ~/.vimrc'
alias ev='nvim ~/.config/nvim'
alias todo="nvim ~/programs/markdown/todolist/todolist.md"
alias t="todo"
alias pip="python -m pip"
alias pip3="python2 -m pip"
alias pip3="python3 -m pip"
alias alacritty="v ~/.config/alacritty/alacritty.yml"
alias isep="cd /Volumes/$/isep"
alias desk="desktop"
alias ports="lsof -Pn -i4"
alias ports2="netstat -ap tcp"
alias network="watch -n 1 \"netstat -p tcp\""
# alias cat=ccat
### Games ###
alias tetris=bastet
alias spaceinvader=ninvaders
# alias tshark="/Applications/Wireshark.app/Contents/MacOS/tshark"
# Git shortcuts
alias gi="git init"
alias ga="echo 'git add -A'; git add -A"
alias gr="git remote"
alias grv="git remote -v"
alias gs="git status"
alias grmc="git rm -r --cached ."
function gc { echo "git commit -m \"$@\""; eval "git commit -m \"$@\"" }
function gp {
if [ "$#" -eq 0 ]; then
echo "git push"
eval "git push"
else
echo "git push \"$@\""
eval "git push \"$@\""
fi
}
function gn { ga; gc $@ }
function gt { ga; gc $@; git push }
function gfp {
git remote add origin $@
git branch -M master
git push -u origin master
}
# Navigation shortcuts
alias home='cd ~'
alias desktop="cd ~/desktop"
alias documents="cd ~/documents"
alias images="cd ~/images"
alias downloads="cd ~/downloads"
# Programming shortcuts
alias programs='cd ~/programs/'
alias website='cd ~/programs/website'
alias web='cd ~/programs/web'
alias javascript='cd ~/programs/web/javascript'
alias canvas='cd ~/programs/web/javascript/canvas'
alias html='cd ~/programs/web/html'
alias css="cd ~/programs/web/css"
alias markdown="cd ~/programs/markdown"
alias wadjet='cd ~/unity games/asteroids'
alias gitprojects="cd ~/git-projects"
alias brain="cd ~/programs/brainperformer"
# Quick temporary aliases
alias asteroids="cd ~/programs/web/javascript/canvas/asteroids"
function p { cd ~/programs/$@ }
function pj { cd ~/git-projects/$@ }
export programs=~/programs
function nodesktopicon {
defaults write com.apple.finder CreateDesktop false
killall Finder
}
function desktopicon {
defaults write com.apple.finder CreateDesktop true
killall Finder
}
# python programs
alias webpfix='py /users/marcpartensky/programs/python/repository-2020/webpfix.py'
alias glou="py /users/marcpartensky/git-projects/glou"
alias noscreenshots='python /users/marcpartensky/programs/python/repository-2020/no-screenshots.py'
alias video2gif='python /users/marcpartensky/programs/python/repository-2020/video2gif.py'
alias hyperplanning="python /users/marcpartensky/programs/python/repository-2020/isep-hyperplanning.py"
alias portail="python /users/marcpartensky/programs/python/repository-2020/isep-portal.py"
# messenger
alias vivelescookies="chrome https://www.facebook.com/messages/t/1830795903602344"
alias alexandre="chrome https://www.facebook.com/messages/t/alexandre.partensky"
alias maman="chrome https://www.facebook.com/messages/t/pew.pradithja.1"
alias pierre="chrome https://www.facebook.com/messages/t/pierre.barthet.5"
alias bigot="chrome https://www.facebook.com/messages/t/alexandre.bgt.12"
alias valentin="chrome https://www.facebook.com/messages/t/valentin.colin.73"
alias samy="chrome https://www.facebook.com/messages/t/samy.haffoudhi"
alias paul="chrome https://www.facebook.com/messages/t/100009925413499"
alias arnaud="chrome https://www.facebook.com/messages/t/100013962188251"
alias etienne="chrome https://www.facebook.com/messages/t/etienne.faviere"
alias baptiste="chrome https://www.facebook.com/messages/t/100009848792300"
alias lovinsky="chrome https://www.facebook.com/messages/t/skyns82"
alias maxime="chrome https://www.facebook.com/messages/t/100011382659168"
alias jp="chrome https://www.facebook.com/messages/t/jeanpascal.vostatek"
alias maximilien="chrome https://www.facebook.com/messages/t/maximilien.delagastine"
alias sacha="chrome https://www.facebook.com/messages/t/sacha.montassiet.1"
alias thibault="chrome https://www.facebook.com/messages/t/thibaut.moi"
alias philippe="chrome https://www.facebook.com/messages/t/100005499708371"
alias medhi="chrome https://www.facebook.com/messages/t/mehdi.haffoudhi.9"
alias hugues="chrome https://www.facebook.com/messages/t/hugues.rubin"
alias kevin="chrome https://www.facebook.com/messages/t/pandasus.pandasus.1"
# applications
alias chrome="open -a 'google chrome' $1"
alias unity="open -a 'unity'"
alias daisy="open -a 'daisydisk'"
alias terminal="open -a 'iterm'"
alias postman="open -a 'postman'"
alias keybr="chrome https://www.keybr.com/"
alias touch-typing="open -a 'google chrome' 'https://www.typingclub.com/sportal/program-3.game'"
alias change-extension="for file in *.$1; do mv '$file' '${file%.txt}.$2'; done"
function finder { open . }
function search { open -a 'Google Chrome' "https://www.google.com/search?q=$*" }
function youtube { open -a 'Google Chrome' "https://www.youtube.com/results?search_query=$1" }
alias yt=youtube
function messenger { open -a 'Google Chrome' "https://www.facebook.com/messages"; }
function messenger-terminal { exec "fb-messenger-cli"; }
alias youtube='cd /Volumes/\$/Youtube'
filename=""
function copy {
filename=$1
echo $filename is copied
cat $1 | pbcopy
}
alias filename='echo $filename'
function paste {
echo $filename is pasted
pbpaste > $filename
}
# This is why being lazyness in programming even exists
function cheat { curl cheat.sh/"$@"; }
function compressgif {
ffmpeg -i $1 -vf scale=320:-1 -r 10 -f image2pipe -vcodec ppm - | convert -delay 5 -loop 0 - $2
}
+3 -2
View File
@@ -1,2 +1,3 @@
# AppleScript
My little applescripts for tasks automation on my mac.
# Dotfiles
My dotfiles config.
+716
View File
@@ -0,0 +1,716 @@
# Configuration for Alacritty, the GPU enhanced terminal emulator.
# Any items in the `env` entry below will be added as
# environment variables. Some entries may override variables
# set by alacritty itself.
env:
# TERM variable
#
# This value is used to set the `$TERM` environment variable for
# each instance of Alacritty. If it is not present, alacritty will
# check the local terminfo database and use `alacritty` if it is
# available, otherwise `xterm-256color` is used.
# TERM: alacritty
TERM: xterm-256color
window:
# dynamic_title: true
# Window dimensions (changes require restart)
#
# Specified in number of columns/lines, not pixels.
# If both are `0`, this setting is ignored.
#dimensions:
# columns: 0
# lines: 0
# Window position (changes require restart)
#
# Specified in number of pixels.
# If the position is not set, the window manager will handle the placement.
#position:
# x: 0
# y: 0
# Window padding (changes require restart)
#
# Blank space added around the window in pixels. This adding is scaled
# by DPI and the specified value is always added at both opposing sides.
#padding:
# x: 0
# y: 0
# Spread additional padding evenly around the terminal content.
dynamic_padding: false
# Window decorations
#
# Values for `decorations`:
# - full: Borders and title bar
# - none: Neither borders nor title bar
#
# Values for `decorations` (macOS only):
# - transparent: Title bar, transparent background and title bar buttons
# - buttonless: Title bar, transparent background, but no title bar buttons
decorations: full
# Startup Mode (changes require restart)
#
# Values for `startup_mode`:
# - Windowed
# - Maximized
# - Fullscreen
#
# Values for `startup_mode` (macOS only):
# - SimpleFullscreen
startup_mode: Windowed
# Window title
title: Marc Partensky
# Window class (Linux/BSD only):
#class:
# Application instance name
#instance: Alacritty
# General application class
#general: Alacritty
# GTK theme variant (Linux/BSD only)
#
# Override the variant of the GTK theme. Commonly supported values are `dark` and `light`.
# Set this to `None` to use the default theme variant.
#gtk_theme_variant: None
scrolling:
# Maximum number of lines in the scrollback buffer.
# Specifying '0' will disable scrolling.
#history: 10000
# Scrolling distance multiplier.
multiplier: 3
# Font configuration
font:
# Normal (roman) font face
normal:
# Font family
#
# Default:
# - (macOS) Menlo
# - (Linux/BSD) monospace
# - (Windows) Consolas
# family: monospace
family: Source Code Pro
# The `style` can be specified to pick a specific face.
style: Regular
# Bold font face
bold:
# Font family
#
# If the bold family is not specified, it will fall back to the
# value specified for the normal font.
# family: monospace
family: Source Code Pro
# The `style` can be specified to pick a specific face.
style: Bold
# Italic font face
italic:
# Font family
#
# If the italic family is not specified, it will fall back to the
# value specified for the normal font.
# family: monospace
family: Source Code Pro
# The `style` can be specified to pick a specific face.
style: Italic
# Bold italic font face
bold_italic:
# Font family
#
# If the bold italic family is not specified, it will fall back to the
# value specified for the normal font.
# family: monospace
family: Source Code Pro
# The `style` can be specified to pick a specific face.
style: Bold Italic
# Point size
size: 15.0
# Offset is the extra space around each character. `offset.y` can be thought of
# as modifying the line spacing, and `offset.x` as modifying the letter spacing.
# offset:
# x: 0
# y: 0
# Glyph offset determines the locations of the glyphs within their cells with
# the default being at the bottom. Increasing `x` moves the glyph to the right,
# increasing `y` moves the glyph upwards.
# glyph_offset:
# x: 0
# y: 0
# Thin stroke font rendering (macOS only)
#
# Thin strokes are suitable for retina displays, but for non-retina screens
# it is recommended to set `use_thin_strokes` to `false`.
use_thin_strokes: true
# If `true`, bold text is drawn using the bright color variants.
# draw_bold_text_with_bright_colors: false
# Colors (Tomorrow Night)
colors:
# Default colors
primary:
background: '#111111'
foreground: '#c5c8c6'
# Bright and dim foreground colors
#
# The dimmed foreground color is calculated automatically if it is not present.
# If the bright foreground color is not set, or `draw_bold_text_with_bright_colors`
# is `false`, the normal foreground color will be used.
dim_foreground: '#828482'
bright_foreground: '#eaeaea'
# Cursor colors
#
# Colors which should be used to draw the terminal cursor.
#
# Allowed values are CellForeground and CellBackground, which reference the
# affected cell, or hexadecimal colors like #ff00ff.
cursor:
text: CellBackground
cursor: CellForeground
# Vi mode cursor colors
#
# Colors for the cursor when the vi mode is active.
#
# Allowed values are CellForeground and CellBackground, which reference the
# affected cell, or hexadecimal colors like #ff00ff.
vi_mode_cursor:
text: CellBackground
cursor: CellForeground
# Selection colors
#
# Colors which should be used to draw the selection area.
#
# Allowed values are CellForeground and CellBackground, which reference the
# affected cell, or hexadecimal colors like #ff00ff.
selection:
text: CellBackground
background: CellForeground
# Search colors
#
# Colors used for the search bar and match highlighting.
#
# Allowed values are CellForeground and CellBackground, which reference the
# affected cell, or hexadecimal colors like #ff00ff.
search:
matches:
foreground: '#000000'
background: '#ffffff'
#
bar:
# background: CellForeground
# foreground: CellBackground
text: '#ff00ff'
cursor: '#ff00ff'
# Normal colors
normal:
black: '#1d1f21'
red: '#cc6666'
green: '#b5bd68'
yellow: '#f0c674'
blue: '#81a2be'
magenta: '#b294bb'
cyan: '#8abeb7'
white: '#c5c8c6'
# Bright colors
bright:
black: '#666666'
red: '#d54e53'
green: '#b9ca4a'
yellow: '#e7c547'
blue: '#7aa6da'
magenta: '#c397d8'
cyan: '#70c0b1'
white: '#eaeaea'
# Dim colors
#
# If the dim colors are not set, they will be calculated automatically based
# on the `normal` colors.
dim:
black: '#131415'
red: '#864343'
green: '#777c44'
yellow: '#9e824c'
blue: '#556a7d'
magenta: '#75617b'
cyan: '#5b7d78'
white: '#828482'
# Indexed Colors
#
# The indexed colors include all colors from 16 to 256.
# When these are not set, they're filled with sensible defaults.
#
# Example:
# `- { index: 16, color: '#ff00ff' }`
#
# indexed_colors: []
# Bell
#
# The bell is rung every time the BEL control character is received.
bell:
# Visual Bell Animation
#
# Animation effect for flashing the screen when the visual bell is rung.
#
# Values for `animation`:
# - Ease
# - EaseOut
# - EaseOutSine
# - EaseOutQuad
# - EaseOutCubic
# - EaseOutQuart
# - EaseOutQuint
# - EaseOutExpo
# - EaseOutCirc
# - Linear
animation: EaseOutExpo
# Duration of the visual bell flash. A `duration` of `0` will disable the
# visual bell animation.
duration: 2
# Visual bell animation color.
color: '#ffffff'
# Bell Command
#
# This program is executed whenever the bell is rung.
#
# When set to `command: None`, no command will be executed.
#
# Example:
# command:
# program: notify-send
# args: ["Hello, World!"]
#
# command: None
# Background opacity
#
# Window opacity as a floating point number from `0.0` to `1.0`.
# The value `0.0` is completely transparent and `1.0` is opaque.
background_opacity: 0.8
selection:
semantic_escape_chars: ",│`|:\"' ()[]{}<>\t"
# When set to `true`, selected text will be copied to the primary clipboard.
save_to_clipboard: true
# Allow terminal applications to change Alacritty's window title.
cursor:
# Cursor style
#
# Values for `style`:
# - ▇ Block
# - _ Underline
# - | Beam
style: Block
# Vi mode cursor style
#
# If the vi mode cursor style is `None` or not specified, it will fall back to
# the style of the active value of the normal cursor.
#
# See `cursor.style` for available options.
vi_mode_style: None
# If this is `true`, the cursor will be rendered as a hollow box when the
# window is not focused.
# unfocused_hollow: true
# Thickness of the cursor relative to the cell width as floating point number
# from `0.0` to `1.0`.
thickness: 0.15
# Live config reload (changes require restart)
live_config_reload: true
# Shell
#
# You can set `shell.program` to the path of your favorite shell, e.g. `/bin/fish`.
# Entries in `shell.args` are passed unmodified as arguments to the shell.
#
# Default:
# - (macOS) /bin/bash --login
# - (Linux/BSD) user login shell
# - (Windows) powershell
#shell:
# program: /bin/bash
# args:
# - --login
# Startup directory
#
# Directory the shell is started in. If this is unset, or `None`, the working
# directory of the parent process will be used.
#working_directory: None
# WinPTY backend (Windows only)
#
# Alacritty defaults to using the newer ConPTY backend if it is available,
# since it resolves a lot of bugs and is quite a bit faster. If it is not
# available, the WinPTY backend will be used instead.
#
# Setting this option to `true` makes Alacritty use the legacy WinPTY backend,
# even if the ConPTY backend is available.
#winpty_backend: false
# Send ESC (\x1b) before characters when alt is pressed.
#alt_send_esc: true
# mouse:
# Click settings
#
# The `double_click` and `triple_click` settings control the time
# alacritty should wait for accepting multiple clicks as one double
# or triple click.
#double_click: { threshold: 300 }
#triple_click: { threshold: 300 }
# If this is `true`, the cursor is temporarily hidden when typing.
# hide_when_typing: false
# url:
# URL launcher
#
# This program is executed when clicking on a text which is recognized as a URL.
# The URL is always added to the command as the last parameter.
#
# When set to `launcher: None`, URL launching will be disabled completely.
#
# Default:
# - (macOS) open
# - (Linux/BSD) xdg-open
# - (Windows) explorer
# launcher:
# program: open
# args: []
# URL modifiers
#
# These are the modifiers that need to be held down for opening URLs when clicking
# on them. The available modifiers are documented in the key binding section.
#modifiers: None
# Mouse bindings
#
# Mouse bindings are specified as a list of objects, much like the key
# bindings further below.
#
# To trigger mouse bindings when an application running within Alacritty captures the mouse, the
# `Shift` modifier is automatically added as a requirement.
#
# Each mouse binding will specify a:
#
# - `mouse`:
#
# - Middle
# - Left
# - Right
# - Numeric identifier such as `5`
#
# - `action` (see key bindings)
#
# And optionally:
#
# - `mods` (see key bindings)
#mouse_bindings:
# - { mouse: Middle, action: PasteSelection }
# Key bindings
#
# Key bindings are specified as a list of objects. For example, this is the
# default paste binding:
#
# `- { key: V, mods: Control|Shift, action: Paste }`
#
# Each key binding will specify a:
#
# - `key`: Identifier of the key pressed
#
# - A-Z
# - F1-F24
# - Key0-Key9
#
# A full list with available key codes can be found here:
# https://docs.rs/glutin/*/glutin/event/enum.VirtualKeyCode.html#variants
#
# Instead of using the name of the keys, the `key` field also supports using
# the scancode of the desired key. Scancodes have to be specified as a
# decimal number. This command will allow you to display the hex scancodes
# for certain keys:
#
# `showkey --scancodes`.
#
# Then exactly one of:
#
# - `chars`: Send a byte sequence to the running application
#
# The `chars` field writes the specified string to the terminal. This makes
# it possible to pass escape sequences. To find escape codes for bindings
# like `PageUp` (`"\x1b[5~"`), you can run the command `showkey -a` outside
# of tmux. Note that applications use terminfo to map escape sequences back
# to keys. It is therefore required to update the terminfo when changing an
# escape sequence.
#
# - `action`: Execute a predefined action
#
# - ToggleViMode
# - Search
# - SearchReverse
# - Copy
# - Paste
# - PasteSelection
# - IncreaseFontSize
# - DecreaseFontSize
# - ResetFontSize
# - ScrollPageUp
# - ScrollPageDown
# - ScrollHalfPageUp
# - ScrollHalfPageDown
# - ScrollLineUp
# - ScrollLineDown
# - ScrollToTop
# - ScrollToBottom
# - ClearHistory
# - Hide
# - Minimize
# - Quit
# - ToggleFullscreen
# - SpawnNewInstance
# - ClearLogNotice
# - ClearSelection
# - ReceiveChar
# - None
#
# (`mode: Vi` only):
# - Open
# - Up
# - Down
# - Left
# - Right
# - First
# - Last
# - FirstOccupied
# - High
# - Middle
# - Low
# - SemanticLeft
# - SemanticRight
# - SemanticLeftEnd
# - SemanticRightEnd
# - WordRight
# - WordLeft
# - WordRightEnd
# - WordLeftEnd
# - Bracket
# - ToggleNormalSelection
# - ToggleLineSelection
# - ToggleBlockSelection
# - ToggleSemanticSelection
# - SearchNext
# - SearchPrevious
# - SearchStart
# - SearchEnd
#
# (macOS only):
# - ToggleSimpleFullscreen: Enters fullscreen without occupying another space
#
# (Linux/BSD only):
# - CopySelection: Copies into selection buffer
#
# - `command`: Fork and execute a specified command plus arguments
#
# The `command` field must be a map containing a `program` string and an
# `args` array of command line parameter strings. For example:
# `{ program: "alacritty", args: ["-e", "vttest"] }`
#
# And optionally:
#
# - `mods`: Key modifiers to filter binding actions
#
# - Command
# - Control
# - Option
# - Super
# - Shift
# - Alt
#
# Multiple `mods` can be combined using `|` like this:
# `mods: Control|Shift`.
# Whitespace and capitalization are relevant and must match the example.
#
# - `mode`: Indicate a binding for only specific terminal reported modes
#
# This is mainly used to send applications the correct escape sequences
# when in different modes.
#
# - AppCursor
# - AppKeypad
# - Alt
#
# A `~` operator can be used before a mode to apply the binding whenever
# the mode is *not* active, e.g. `~Alt`.
#
# Bindings are always filled by default, but will be replaced when a new
# binding with the same triggers is defined. To unset a default binding, it can
# be mapped to the `ReceiveChar` action. Alternatively, you can use `None` for
# a no-op if you do not wish to receive input characters for that binding.
#
# If the same trigger is assigned to multiple actions, all of them are executed
# at once.
key_bindings:
# - { key: Paste, action: Paste }
# - { key: Copy, action: Copy }
# - { key: Copy, action: ClearSelection }
# - { key: L, mods: Control, action: ClearLogNotice }
#- { key: L, mods: Control, mode: ~Vi, chars: "\x0c" }
#- { key: PageUp, mods: Shift, mode: ~Alt, action: ScrollPageUp, }
#- { key: PageDown, mods: Shift, mode: ~Alt, action: ScrollPageDown }
#- { key: Home, mods: Shift, mode: ~Alt, action: ScrollToTop, }
#- { key: End, mods: Shift, mode: ~Alt, action: ScrollToBottom }
# Vi Mode
#- { key: Space, mods: Shift|Control, mode: Vi, action: ScrollToBottom }
#- { key: Space, mods: Shift|Control, action: ToggleViMode }
#- { key: Escape, mode: Vi, action: ClearSelection }
#- { key: I, mode: Vi, action: ScrollToBottom }
#- { key: I, mode: Vi, action: ToggleViMode }
#- { key: Y, mods: Control, mode: Vi, action: ScrollLineUp }
#- { key: E, mods: Control, mode: Vi, action: ScrollLineDown }
#- { key: G, mode: Vi, action: ScrollToTop }
#- { key: G, mods: Shift, mode: Vi, action: ScrollToBottom }
#- { key: B, mods: Control, mode: Vi, action: ScrollPageUp }
#- { key: F, mods: Control, mode: Vi, action: ScrollPageDown }
#- { key: U, mods: Control, mode: Vi, action: ScrollHalfPageUp }
#- { key: D, mods: Control, mode: Vi, action: ScrollHalfPageDown }
#- { key: Y, mode: Vi, action: Copy }
#- { key: Y, mode: Vi, action: ClearSelection }
#- { key: Copy, mode: Vi, action: ClearSelection }
#- { key: V, mode: Vi, action: ToggleNormalSelection }
#- { key: V, mods: Shift, mode: Vi, action: ToggleLineSelection }
#- { key: V, mods: Control, mode: Vi, action: ToggleBlockSelection }
#- { key: V, mods: Alt, mode: Vi, action: ToggleSemanticSelection }
#- { key: Return, mode: Vi, action: Open }
#- { key: K, mode: Vi, action: Up }
#- { key: J, mode: Vi, action: Down }
#- { key: H, mode: Vi, action: Left }
#- { key: L, mode: Vi, action: Right }
#- { key: Up, mode: Vi, action: Up }
#- { key: Down, mode: Vi, action: Down }
#- { key: Left, mode: Vi, action: Left }
#- { key: Right, mode: Vi, action: Right }
#- { key: Key0, mode: Vi, action: First }
#- { key: Key4, mods: Shift, mode: Vi, action: Last }
#- { key: Key6, mods: Shift, mode: Vi, action: FirstOccupied }
#- { key: H, mods: Shift, mode: Vi, action: High }
#- { key: M, mods: Shift, mode: Vi, action: Middle }
#- { key: L, mods: Shift, mode: Vi, action: Low }
#- { key: B, mode: Vi, action: SemanticLeft }
#- { key: W, mode: Vi, action: SemanticRight }
#- { key: E, mode: Vi, action: SemanticRightEnd }
#- { key: B, mods: Shift, mode: Vi, action: WordLeft }
#- { key: W, mods: Shift, mode: Vi, action: WordRight }
#- { key: E, mods: Shift, mode: Vi, action: WordRightEnd }
#- { key: Key5, mods: Shift, mode: Vi, action: Bracket }
#- { key: Slash, mode: Vi, action: Search }
#- { key: Slash, mods: Shift, mode: Vi, action: SearchReverse }
#- { key: N, mode: Vi, action: SearchNext }
#- { key: N, mods: Shift, mode: Vi, action: SearchPrevious }
# (Windows, Linux, and BSD only)
#- { key: V, mods: Control|Shift, action: Paste }
#- { key: C, mods: Control|Shift, action: Copy }
#- { key: C, mods: Control|Shift, mode: Vi, action: ClearSelection }
#- { key: Insert, mods: Shift, action: PasteSelection }
#- { key: Key0, mods: Control, action: ResetFontSize }
#- { key: Equals, mods: Control, action: IncreaseFontSize }
#- { key: Add, mods: Control, action: IncreaseFontSize }
#- { key: Subtract, mods: Control, action: DecreaseFontSize }
#- { key: Minus, mods: Control, action: DecreaseFontSize }
# (Windows only)
# - { key: Return, mods: Alt, action: ToggleFullscreen }
# (macOS only)
- { key: K, mods: Command, mode: ~Vi, chars: "\x0c" }
- { key: Key0, mods: Command, action: ResetFontSize }
- { key: Equals, mods: Command, action: IncreaseFontSize }
# - { key: Add, mods: Command, action: IncreaseFontSize }
- { key: Minus, mods: Command, action: DecreaseFontSize }
- { key: K, mods: Command, action: ClearHistory }
- { key: V, mods: Command, action: Paste }
- { key: C, mods: Command, action: Copy }
# - { key: C, mods: Command, action: ClearSelection }
# - { key: Copy, mods: Command, action: ClearSelection }
# - { key: C, mods: Command, mode: Vi, action: Copy }
# - { key: Copy, mods: Command, mode: Vi, action: ClearSelection }
- { key: H, mods: Command, action: Hide }
- { key: M, mods: Command, action: Minimize }
- { key: Q, mods: Command, action: Quit }
- { key: W, mods: Command, action: Quit }
- { key: N, mods: Command, action: SpawnNewInstance }
- { key: F, mods: Command|Control, action: ToggleFullscreen }
- { key: S, mods: Command, chars: "\x1b:w\x0a" }
- { key: W, mods: Command, chars: "\x1b:q\x0a" }
- { key: T, mods: Command, chars: ":tabnew | terminal\x0a" }
- { key: Left, mods: Command|Alt, chars: ":tabprevious\x0a" }
- { key: Right, mods: Command|Alt, chars: ":tabnext\x0a" }
- { key: Slash, mods: Command, chars: ":Commentary\x0a" }
- { key: I, mods: Command, chars: "\x1b:!\"%:p\"\x0a" }
- { key: Y, mods: Command, chars: "\x1b:!pylint %\x0a" }
- { key: A, mods: Command, chars: "\x1bggVG" }
# - { key: J, mods: Command, chars: "v\x0a" }
# debug:
# Display the time it takes to redraw each frame.
#render_timer: false
# Keep the log file after quitting Alacritty.
# persistent_logging: true
# Log level
#
# Values for `log_level`:
# - None
# - Error
# - Warn
# - Info
# - Debug
# - Trace
#log_level: Warn
# Print all received window events.
# print_events: true
+28
View File
@@ -0,0 +1,28 @@
alias mcd="mkcdir"
alias go="mkcdir"
alias dotfiles="cd $DOTFILES_PATH"
alias dotmain="v $DOTFILES_PATH/main.sh"
alias dotaliases="v $DOTFILES_PATH/aliases.sh"
alias dotfunctions="v $DOTFILES_PATH/functions.sh"
alias dotexports="v $DOTFILES_PATH/exports.sh"
alias dotzshenv="v $DOTFILES_PATH/.zshenv"
alias dota="dotaliases"
alias dotm="dotmain"
alias dotf="dotfunctions"
alias dote="dotexports"
alias dotz="dotzshenv"
alias esclave="cd ~/discordbot/esclave"
alias servant="cd ~/discordbot/servant-de-marc"
alias esclaveaws="ssh -i 'discordbotofmarcpartensky.pem' ubuntu@ec2-15-236-33-61.eu-west-3.compute.amazonaws.com"
alias mampstart='~/Library/Applications/MAMP/bin/start.sh'
alias mampstop='~/Library/Applications/MAMP/bin/stop.sh'
alias jsonbeautify="chrome https://jsonformatter.curiousconcept.com/"
alias github="chrome https://github.com/MarcPartensky/"
alias finder="open ."
alias py=python
alias activate="source venv/bin/activate"
alias py20='cd ~/programs/python/repository-2020'
alias pygames='cd ~/programs/python/repository-games'
alias pyml='cd ~/programs/python/machine-learning'
alias pyhome='cd ~/programs/python'
alias pypackages='cd /library/frameworks/python.framework/versions/3.8/lib/python3.8/site-packages/'
+2057
View File
File diff suppressed because it is too large Load Diff
+73
View File
@@ -0,0 +1,73 @@
# Path variables
export PATH="$PATH:/Library/Java/JavaVirtualMachines/jdk-9.0.1.jdk/Contents/Home/bin"
export PATH="/Library/Frameworks/Python.framework/Versions/3.6/bin:$PATH"
export PATH="/Library/Frameworks/Python.framework/Versions/3.7/bin:$PATH"
export PATH="/Library/Frameworks/Python.framework/Versions/3.8/bin:$PATH"
export PYENV_ROOT="$HOME/.pyenv"
export PATH="$PYENV_ROOT/bin:$PATH"
export PATH="/usr/local/opt/grep/libexec/gnubin:$PATH"
export PATH="/Users/marcpartensky/flutter/bin:$PATH"
export PATH="$HOME/.yarn/bin:$HOME/.config/yarn/global/node_modules/.bin:$PATH"
export PATH="/opt/local/bin:$PATH"
export PATH="/opt/local/bin:/opt/local/sbin:$PATH"
export PATH="$HOME/.cargo/bin:$PATH"
export CLICOLOR=1
export PYENV_VIRTUALENV_DISABLE_PROMPT=1
export TEST="This is a test"
export PRODUCTION=false
export DEBUG_VALUE="True"
export DEVELOPMENT=true
export WEBSITE_URL="https://marcpartensky.herokuapp.com"
export WEBSITE_USER="marcpartensky"
export WEBSITE_PASSWORD="glouaymay"
export ISEP_ID="mapa60217"
export ISEP_PORTAL_PASSWORD="fKY?Td7B"
export ISEP_HYPERPLANNING_PASSWORD="7SaxUGjq"
export APPLE_PASSWORD="MarcGPTL44"
export APPLE_MAIL="marc.partensky@gmail.com"
export GMAIL="marc.partensky@gmail.com"
export FREE_MAIL="marc.partensky@free.fr"
export HEROKU_PASSWORD_MARC_PARTENSKY_2="MarcGPTL44@heroku"
export AWS_ACCESS_KEY_ID="AKIAQWHDPXHAAQUJ6DNO"
export AWS_SECRET_ACCESS_KEY="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"
export AWS_STORAGE_BUCKET_NAME="django-blog-marc-partensky"
export SECRET_KEY="cdda0d3fff2c924abb9789bcf781e154449a794276d1e715"
export GOOGLE_APPLICATION_CREDENTIALS="/Users/marcpartensky/Google-Cloud/credentials.json"
export DISCORD_TOKEN="NzEwODYzNDIzMzA2NTk2MzU0.Xxg0uQ.wn54qCFTEPGcxzynmpE_zXIe2Yo"
export DISCORD_CLIENT_ID="710863423306596354"
export DISCORD_MONGO_CLUSTER="discord-cluster-5ckni.mongodb.net/test"
export DISCORD_MONGO_USERNAME="esclave"
export DISCORD_MONGO_PASSWORD="esclave"
export WOLFRAM_ALPHA_ID="WRG62L-Q5X5PUJQ83"
export FACEBOOK_MAIL="marc.partensky@free.fr"
export FACEBOOK_PASSWORD="glouaymayglouaymay69"
export FACEBOOK_MAIL_2="marc.partensky@gmail.com"
export FACEBOOK_PASSWORD_2="marcgptl44"
export FACEBOOK_MAIL_MISCORD="marc.partensky.website@gmail.com"
export FACEBOOK_PASSWORD_MISCORD="miscord@bot69"
export MISCORD_DASHBOARD_USERNAME="miscord-of-marc"
export MISCORD_DASHBOARD_PASSWORD="miscordofmarc"
export PYGITHUB_TOKEN="3a75f51f1b6d0f3dfd341c9e61c10ddaa2adc3f2"
export GITHUB_TOKEN="66c1fa3aeb514c830f9d7f99dee394790857cfaa"
export CAPTCHA_WEBSITE_KEY="6LenqaQZAAAAAC1KXdUOJC2OCZBEJ2DACeUVGEkl"
export CAPTCHA_SECRET_KEY="6LenqaQZAAAAAA_Y_Sx9i3Vh1q-TRSqZUUnmJzFV"
export LEEKWARS_USERNAME="Mazex"
export BRAWLSTARS_ID="8YC89YRL0"
export BRAWLSTARS_MAIL="marc.gptl44@gmail.com"
export BRAWLSTARS_PASSWORD="marc.partensky@brawlstars"
export BRAWLSTARS_TOKEN="eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzUxMiIsImtpZCI6IjI4YTMxOGY3LTAwMDAtYTFlYi03ZmExLTJjNzQzM2M2Y2NhNSJ9.eyJpc3MiOiJzdXBlcmNlbGwiLCJhdWQiOiJzdXBlcmNlbGw6Z2FtZWFwaSIsImp0aSI6ImQzY2EzNjMxLWIwZTAtNDA4NC05MGUwLTIyMDg5MmY2OTMwNiIsImlhdCI6MTU5MjUxNzE0NCwic3ViIjoiZGV2ZWxvcGVyLzdmYzlhMjM2LTVkMTMtMzgxNC1kYmJkLWUwYmU0YzFlOTdjMiIsInNjb3BlcyI6WyJicmF3bHN0YXJzIl0sImxpbWl0cyI6W3sidGllciI6ImRldmVsb3Blci9zaWx2ZXIiLCJ0eXBlIjoidGhyb3R0bGluZyJ9LHsiY2lkcnMiOlsiOTEuMTY1LjIxLjg3Il0sInR5cGUiOiJjbGllbnQifV19.EHXW9ji-11Av8p9oFBpQ02idYPGxapNKbFG6P6AprjlgkLLjZ1WN2VM7hkM2b9aPjJKbIlmE4BJEij5dvM-rfg"
export DISCORD_PREFIX="?"
export DISCORD_DEPLOYMENT="DEVELOPMENT"
export YTOPTS="-ciw -x --audio-format 'mp3' --audio-quality 0 -f bestaudio --embed-thumbnail -o '%(title )s.%(ext)s' --rm-cache-dir"
export PP_PASSWORD="yaM-yauolG44"
export LS_COLORS="auto"
# export JAVA_HOME=$(/usr/libexec/java_home)
# For Pyenv
# export PYENV_ROOT="$HOME/.pyenv"
# export PATH="$PYENV_ROOT/bin:$PATH"
# if command -v pyenv 1>/dev/null 2>&1; then
# eval "$(pyenv init -)"
# fi
+64
View File
@@ -0,0 +1,64 @@
#-- START ZCACHE GENERATED FILE
#-- GENERATED: Sam 9 jan 2021 04:01:30 CET
#-- ANTIGEN v2.2.3
_antigen () {
local -a _1st_arguments
_1st_arguments=('apply:Load all bundle completions' 'bundle:Install and load the given plugin' 'bundles:Bulk define bundles' 'cleanup:Clean up the clones of repos which are not used by any bundles currently loaded' 'cache-gen:Generate cache' 'init:Load Antigen configuration from file' 'list:List out the currently loaded bundles' 'purge:Remove a cloned bundle from filesystem' 'reset:Clears cache' 'restore:Restore the bundles state as specified in the snapshot' 'revert:Revert the state of all bundles to how they were before the last antigen update' 'selfupdate:Update antigen itself' 'snapshot:Create a snapshot of all the active clones' 'theme:Switch the prompt theme' 'update:Update all bundles' 'use:Load any (supported) zsh pre-packaged framework')
_1st_arguments+=('help:Show this message' 'version:Display Antigen version')
__bundle () {
_arguments '--loc[Path to the location <path-to/location>]' '--url[Path to the repository <github-account/repository>]' '--branch[Git branch name]' '--no-local-clone[Do not create a clone]'
}
__list () {
_arguments '--simple[Show only bundle name]' '--short[Show only bundle name and branch]' '--long[Show bundle records]'
}
__cleanup () {
_arguments '--force[Do not ask for confirmation]'
}
_arguments '*:: :->command'
if (( CURRENT == 1 ))
then
_describe -t commands "antigen command" _1st_arguments
return
fi
local -a _command_args
case "$words[1]" in
(bundle) __bundle ;;
(use) compadd "$@" "oh-my-zsh" "prezto" ;;
(cleanup) __cleanup ;;
(update|purge) compadd $(type -f \-antigen-get-bundles &> /dev/null || antigen &> /dev/null; -antigen-get-bundles --simple 2> /dev/null) ;;
(theme) compadd $(type -f \-antigen-get-themes &> /dev/null || antigen &> /dev/null; -antigen-get-themes 2> /dev/null) ;;
(list) __list ;;
esac
}
antigen () {
local MATCH MBEGIN MEND
[[ "$ZSH_EVAL_CONTEXT" =~ "toplevel:*" || "$ZSH_EVAL_CONTEXT" =~ "cmdarg:*" ]] && source "/usr/local/Cellar/antigen/2.2.3/share/antigen/antigen.zsh" && eval antigen $@;
return 0;
}
typeset -gaU fpath path
fpath+=(/Users/marcpartensky/.antigen/bundles/romkatv/powerlevel10k /Users/marcpartensky/.antigen/bundles/zsh-users/zsh-autosuggestions /Users/marcpartensky/.antigen/bundles/zsh-users/zsh-syntax-highlighting) path+=(/Users/marcpartensky/.antigen/bundles/romkatv/powerlevel10k /Users/marcpartensky/.antigen/bundles/zsh-users/zsh-autosuggestions /Users/marcpartensky/.antigen/bundles/zsh-users/zsh-syntax-highlighting)
_antigen_compinit () {
autoload -Uz compinit; compinit -i -d "/Users/marcpartensky/.antigen/.zcompdump"; compdef _antigen antigen
add-zsh-hook -D precmd _antigen_compinit
}
autoload -Uz add-zsh-hook; add-zsh-hook precmd _antigen_compinit
compdef () {}
if [[ -n "" ]]; then
ZSH=""; ZSH_CACHE_DIR=""
fi
#--- BUNDLES BEGIN
source '/Users/marcpartensky/.antigen/bundles/romkatv/powerlevel10k/powerlevel10k.zsh-theme.antigen-compat';
source '/Users/marcpartensky/.antigen/bundles/robbyrussell/oh-my-zsh/themes/eastwood.zsh-theme.antigen-compat';
source '/Users/marcpartensky/.antigen/bundles/robbyrussell/oh-my-zsh/themes/kardan.zsh-theme.antigen-compat';
source '/Users/marcpartensky/.antigen/bundles/robbyrussell/oh-my-zsh/themes/nicoulaj.zsh-theme.antigen-compat';
source '/Users/marcpartensky/.antigen/bundles/zsh-users/zsh-autosuggestions/zsh-autosuggestions.plugin.zsh';
source '/Users/marcpartensky/.antigen/bundles/zsh-users/zsh-syntax-highlighting/zsh-syntax-highlighting.plugin.zsh';
#--- BUNDLES END
typeset -gaU _ANTIGEN_BUNDLE_RECORD; _ANTIGEN_BUNDLE_RECORD=('https://github.com/romkatv/powerlevel10k.git / theme true' 'https://github.com/robbyrussell/oh-my-zsh.git themes/eastwood.zsh-theme theme true' 'https://github.com/robbyrussell/oh-my-zsh.git themes/kardan.zsh-theme theme true' 'https://github.com/robbyrussell/oh-my-zsh.git themes/nicoulaj.zsh-theme theme true' 'https://github.com/zsh-users/zsh-autosuggestions.git / plugin true' 'https://github.com/zsh-users/zsh-syntax-highlighting.git / plugin true')
typeset -g _ANTIGEN_CACHE_LOADED; _ANTIGEN_CACHE_LOADED=true
typeset -ga _ZCACHE_BUNDLE_SOURCE; _ZCACHE_BUNDLE_SOURCE=('/Users/marcpartensky/.antigen/bundles/romkatv/powerlevel10k//' '/Users/marcpartensky/.antigen/bundles/romkatv/powerlevel10k///powerlevel10k.zsh-theme' '/Users/marcpartensky/.antigen/bundles/robbyrussell/oh-my-zsh/themes/eastwood.zsh-theme' '/Users/marcpartensky/.antigen/bundles/robbyrussell/oh-my-zsh/themes/eastwood.zsh-theme' '/Users/marcpartensky/.antigen/bundles/robbyrussell/oh-my-zsh/themes/kardan.zsh-theme' '/Users/marcpartensky/.antigen/bundles/robbyrussell/oh-my-zsh/themes/kardan.zsh-theme' '/Users/marcpartensky/.antigen/bundles/robbyrussell/oh-my-zsh/themes/nicoulaj.zsh-theme' '/Users/marcpartensky/.antigen/bundles/robbyrussell/oh-my-zsh/themes/nicoulaj.zsh-theme' '/Users/marcpartensky/.antigen/bundles/zsh-users/zsh-autosuggestions//' '/Users/marcpartensky/.antigen/bundles/zsh-users/zsh-autosuggestions///zsh-autosuggestions.plugin.zsh' '/Users/marcpartensky/.antigen/bundles/zsh-users/zsh-syntax-highlighting//' '/Users/marcpartensky/.antigen/bundles/zsh-users/zsh-syntax-highlighting///zsh-syntax-highlighting.plugin.zsh')
typeset -g _ANTIGEN_CACHE_VERSION; _ANTIGEN_CACHE_VERSION='v2.2.3'
#-- END ZCACHE GENERATED FILE
BIN
View File
Binary file not shown.
+114
View File
@@ -0,0 +1,114 @@
mkcdir() {
mkdir -p -- "$1" &&
cd -P -- "$1"
}
alias startmamp='cd /Applications/MAMP/bin && ./start.sh'
alias stopmamp='cd /Applications/MAMP/bin && ./stop.sh'
function exists { which $1 &> /dev/null }
if exists percol; then
function percol_select_history() {
local tac
exists gtac && tac="gtac" || { exists tac && tac="tac" || { tac="tail -r" } }
BUFFER=$(fc -l -n 1 | eval $tac | percol --query "$LBUFFER")
CURSOR=$#BUFFER # move cursor
zle -R -c # refresh
}
zle -N percol_select_history
bindkey '^R' percol_select_history
fi
function div {
local _d=${3:-2}
local _n=0000000000
_n=${_n:0:$_d}
local _r=$(($1$_n/$2))
_r=${_r:0:-$_d}.${_r: -$_d}
return $_r
}
# Ffmpeg
function speed-up {
local n=$(python3 -c "print(1/$3)" 2>&1)
ffmpeg -i $1 -filterv "setpts=$n*PTS" $2
}
filename=""
function copy {
filename=$1
echo $filename is copied
cat $1 | pbcopy
}
function paste {
echo $filename is pasted
pbpaste > $filename
}
function search { open -a 'Google Chrome' "http://www.google.com/search?q=$1" }
alias chrome="open -a 'Google Chrome' $1";
alias daisy="open -a 'DaisyDisk'"
function youtube { open -a 'Google Chrome' "https://www.youtube.com/results?search_query=$1" }
function messenger { open -a 'Google Chrome' "https://www.facebook.com/messages"; }
function messenger-terminal { exec "fb-messenger-cli"; }
alias postman="open -a 'Postman'"
function spam {
exec "messenger_terminal";
exec "/search $1";
exec "0";
for i in {1...$3}
do
exec $2;
done
}
function troll {
sleep $1;
for i in {1..$2}
do
osascript -e 'display notification "you are useless"'
say "you are useless"
done
}
function touch-typing {
open -a 'Google Chrome' 'https://www.typingclub.com/sportal/program-3.game'
}
function keybr {
open -a 'Google Chrome' 'https://keybr.com'
}
function speedtest {
python /usr/local/marc/speedtest.py
}
function dl-music {
youtube-dl -ciw -x --audio-format "mp3" --audio-quality 0 -f bestaudio --embed-thumbnail -o '%(title)s.%(ext)s' --rm-cache-dir $*
}
function ytdl {
youtube-dl -ciw -x --audio-format 'mp3' --audio-quality 0 -f bestaudio --embed-thumbnail -o '%(title)s.%(ext)s' --rm-cache-dir
}
function weather {
curl wttr.in
}
function p {
cd ~/Programs/$@
}
function pj {
cd ~/git-projects/$@
}
+63
View File
@@ -0,0 +1,63 @@
#!/usr/bin/env zsh
# It is inspired from https://gist.github.com/w3cj/76cd9fb9f346e153b6f0dc46fd025620
# xcode-select --install /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
#
case `uname` in
Darwin)
# commands for OS X go here
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
brew update
brew install git
brew install alacritty
# brew cask install iterm2
brew install neovim
brew install pyenv
brew install node
brew install fortune
brew install cowsay
brew install ccat
brew install highlight
# brew install cmatrix tmatrix
brew install lolcat
brew install figlet
brew install toilet
brew install watch
brew install jq fzf peco #emoji completion
brew install emojify
# brew install vcprompt
# brew cask install spectacle
# brew cask install firefox
# install nvm/node
brew cask install rectangle
brew cask install alfred
;;
Linux)
# commands for Linux go here
;;
FreeBSD)
# commands for FreeBSD go here
;;
esac
# curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.33.11/install.sh | bash
# nvm install stable
# npm install -g lite-server eslint
# brew cask install visual-studio-code
# brew cask install hyperswitch
# dynamic history search
pip install percol
if [ -d "~/.config" ]; then
makedir ~/.config
fi
if [ -d "~/.config/nvim" ]; then
git clone https://github.com/MarcPartensky/nvim.git ~./config
fi
View File
+2
View File
@@ -0,0 +1,2 @@
brew update
source ./task.sh
Executable
+127
View File
@@ -0,0 +1,127 @@
export DOTFILES_PATH=${0:a:h}
export PROGRAMS_PATH=$(readlink -f "$DOTFILES_PATH/..")
# $(readlink -f "$(which $0)/..")
# vim mode inside the terminal
set -o vi
set editing-mode vi
set keymap vi
set shiftwidth=4
set clipboard=unnamedplus
#\\\_ COMPLETIONS _///#
# zstyle :compinstall filename '/Users/fd0/.zshrc'
zstyle ':completion:*' list-colors "${(@s.:.)LS_COLORS}"
autoload -Uz compinit
compinit
autoload -Uz bashcompinit
bashcompinit
# The following lines were added by compinstall
# zstyle :compinstall filename '/Users/marcpartensky/.zshrc'
# autoload -Uz compinit
# compinit
# autocompletion
# source ~/.zsh-plugins/zsh-autocomplete/zsh-autocomplete.plugin.zsh
# zstyle ':autocomplete:*' config off
zstyle ':autocomplete:*' min-input 3
# pip zsh completion start
function _pip_completion {
local words cword
read -Ac words
read -cn cword
reply=( $( COMP_WORDS="$words[*]" \
COMP_CWORD=$(( cword-1 )) \
PIP_AUTO_COMPLETE=1 $words[1] 2>/dev/null ))
}
compctl -K _pip_completion pip3
# Antigen
ANTIGEN_CACHE=false
source ${0:a:h}/antigen.zsh
antigen theme romkatv/powerlevel10k
antigen theme eastwood
antigen theme kardan
antigen theme nicoulaj
# antigen theme candy
# antigen theme robbyrussell
antigen bundle zsh-users/zsh-autosuggestions
antigen bundle zsh-users/zsh-syntax-highlighting
#antigen bundle soimort/translate-shell
antigen apply
bindkey '\t' autosuggest-accept
source ~/.antigen/bundles/zsh-users/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh
# ZSH_AUTOSUGGEST_HIGHLIGHT_STYLE="fg=#ff00ff,bg=cyan,bold,underline"
# ZSH_THEME="powerlevel10k/powerlevel10k"
# ZSH_THEME="eastwood"
# Deprecated
# export GREP_OPTIONS="--color=always"
# export GREP_COLORS="ms=01;31:mc=01;31:sl=:cx=:fn=35:ln=32:bn=32:se=36"
# pyenv setup
eval "$(pyenv init -)"
source ${0:a:h}/exports.sh
source ${0:a:h}/aliases.sh
source ${0:a:h}/functions.sh
ln -snf ${0:a:h}/.zshenv ~
ln -snf ${0:a:h}/.p10k.zsh ~
source ${0:a:h}/.zshenv
source ${0:a:h}/.p10k.zsh
# When started as 'evim', evim.vim will already have done these settings, bail out.
# if v:progname =~? "evim"
# finish
# endif
# Get the defaults that most users want.
# source $VIMRUNTIME/defaults.vim
# if has("vms"); then
# set nobackup
# do not keep a backup file, use versions instead
# else
# set backup
# keep a backup file (restore to previous version)
# if has('persistent_undo'); then
# set undofile # keep an undo file (undo changes after closing)
# fi
# fi
# if [&t_Co > 2 -o has("gui_running")]; then
# Switch on highlighting the last used search pattern.
# set hlsearch
# fi
# Put these in an autocmd group, so that we can delete them easily.
# augroup vimrcEx
# au!
# For all text files set 'textwidth' to 78 characters.
# autocmd FileType text setlocal textwidth=78
# augroup END
# Add optional packages.
# The matchit plugin makes the % command work better, but it is not backwards
# compatible.
# The ! means the package won't be loaded right away but when plugins are
# loaded during initialization.
# if [has('syntax') -a has('eval')]; then
# packadd! matchit
# fi
# prompt_context() {
# if [[ "$USER" != "$DEFAULT_USER" || -n "$SSH_CLIENT" ]]; then
# prompt_segment black default "%(!.%{%F{yellow}%}.)$USER"
# fi
# }
BIN
View File
Binary file not shown.
-26
View File
@@ -1,26 +0,0 @@
on run {input, parameters}
# seem to need the full path at least in some cases
# -p opens files in separate tabs
set nvimCommand to "/usr/local/bin/nvim -p "
set filepaths to ""
if input is not {} then
repeat with currentFile in input
set filepaths to filepaths & quoted form of POSIX path of currentFile & " "
end repeat
end if
if application "Alacritty" is running then
tell application "Alacritty"
create window with default profile command nvimCommand & filepaths
end tell
else
tell application "Alacritty"
tell current session of current window
write text nvimCommand & filepaths
end tell
end tell
end if
end run
-27
View File
@@ -1,27 +0,0 @@
on run {input, parameters}
if (count of input) > 0 then
tell application "System Events"
set runs to false
try
set p to application process "Alacritty"
set runs to true
end try
end tell
tell application "Alacritty"
activate
if (count of terminals) = 0 then
set t to (make new terminal)
else
set t to current terminal
end if
tell t
tell (make new session at the end of sessions)
exec command ("vim \"" & POSIX path of first item of input as text) & "\""
end tell
if not runs then
terminate first session
end if
end tell
end tell
end if
end run
-5
View File
@@ -1,5 +0,0 @@
tell application "Finder"
tell front window
update every item with necessity
end tell
end tell
-6
View File
@@ -1,6 +0,0 @@
--show where the pic is in the Finder
tell application "Finder"
set theDesktopPic to desktop picture
set theName to displayed name of theDesktopPic
reveal theDesktopPic
end tell