diff options
| -rw-r--r-- | aliases/.aliases/aliases | 1 | ||||
| -rw-r--r-- | nvim/.config/nvim/lua/user/options.lua | 2 | ||||
| -rwxr-xr-x | scripts/.scripts/tmux-sessionizer.sh | 25 | ||||
| -rwxr-xr-x | scripts/.scripts/z.sh | 3 | ||||
| -rw-r--r-- | zsh/.zshrc | 47 |
5 files changed, 72 insertions, 6 deletions
diff --git a/aliases/.aliases/aliases b/aliases/.aliases/aliases index 5622aa8..c106ca5 100644 --- a/aliases/.aliases/aliases +++ b/aliases/.aliases/aliases @@ -1,3 +1,4 @@ +alias ftr="~/fileToRace.py" alias nv="neovide" alias pg="ps auxw | grep -v grep | grep $1" alias gpl="~/.scripts/get_project_lines.sh" diff --git a/nvim/.config/nvim/lua/user/options.lua b/nvim/.config/nvim/lua/user/options.lua index cc4fa09..e7cc46b 100644 --- a/nvim/.config/nvim/lua/user/options.lua +++ b/nvim/.config/nvim/lua/user/options.lua @@ -32,7 +32,7 @@ local options = { wrap = false, -- display lines as one long line scrolloff = 8, -- is one of my fav sidescrolloff = 8, - guifont = "comic mono:h15", -- the font used in graphical neovim applications + guifont = "comic mono:h11", -- the font used in graphical neovim applications } vim.opt.shortmess:append "c" diff --git a/scripts/.scripts/tmux-sessionizer.sh b/scripts/.scripts/tmux-sessionizer.sh new file mode 100755 index 0000000..727735c --- /dev/null +++ b/scripts/.scripts/tmux-sessionizer.sh @@ -0,0 +1,25 @@ +#!/bin/sh + +if [[ $# -eq 1 ]]; then + selected=$1 +else + selected=$(find ~/test -mindepth 1 -maxdepth 2 -type d | fzf) +fi + +if [[ -z $selected ]]; then + exit 0 +fi + +selected_name=$(basename "$selected" | tr . _) +tmux_running=$(pgrep tmux) + +if [[ -z $TMUX ]] && [[ -z $tmux_running ]]; then + tmux new-session -s $selected_name -c $selected + exit 0 +fi + +if ! tmux has-session -t=$selected_name 2> /dev/null; then + tmux new-session -ds $selected_name -c $selected +fi + +tmux switch-client -t $selected_name diff --git a/scripts/.scripts/z.sh b/scripts/.scripts/z.sh new file mode 100755 index 0000000..16b28a6 --- /dev/null +++ b/scripts/.scripts/z.sh @@ -0,0 +1,3 @@ +#!/bin/sh + +z | sort @@ -1,6 +1,12 @@ # If you come from bash you might have to change your $PATH. # export PATH=$HOME/bin:/usr/local/bin:$PATH + + +QT_INCLUDE_PATH="$HOME/Qt/5.15.2/gcc_64/include/Qt3DAnimation:$HOME/Qt/5.15.2/gcc_64/include/Qt3DCore:$HOME/Qt/5.15.2/gcc_64/include/Qt3DExtras:$HOME/Qt/5.15.2/gcc_64/include/Qt3DInput:$HOME/Qt/5.15.2/gcc_64/include/Qt3DLogic:$HOME/Qt/5.15.2/gcc_64/include/Qt3DQuick:$HOME/Qt/5.15.2/gcc_64/include/Qt3DQuickAnimation:$HOME/Qt/5.15.2/gcc_64/include/Qt3DQuickExtras:$HOME/Qt/5.15.2/gcc_64/include/Qt3DQuickInput:$HOME/Qt/5.15.2/gcc_64/include/Qt3DQuickRender:$HOME/Qt/5.15.2/gcc_64/include/Qt3DQuickScene2D:$HOME/Qt/5.15.2/gcc_64/include/Qt3DRender:$HOME/Qt/5.15.2/gcc_64/include/QtAccessibilitySupport:$HOME/Qt/5.15.2/gcc_64/include/QtBluetooth:$HOME/Qt/5.15.2/gcc_64/include/QtConcurrent:$HOME/Qt/5.15.2/gcc_64/include/QtCore:$HOME/Qt/5.15.2/gcc_64/include/QtDBus:$HOME/Qt/5.15.2/gcc_64/include/QtDesigner:$HOME/Qt/5.15.2/gcc_64/include/QtDesignerComponents:$HOME/Qt/5.15.2/gcc_64/include/QtDeviceDiscoverySupport:$HOME/Qt/5.15.2/gcc_64/include/QtEdidSupport:$HOME/Qt/5.15.2/gcc_64/include/QtEglFSDeviceIntegration:$HOME/Qt/5.15.2/gcc_64/include/QtEglSupport:$HOME/Qt/5.15.2/gcc_64/include/QtEventDispatcherSupport:$HOME/Qt/5.15.2/gcc_64/include/QtFbSupport:$HOME/Qt/5.15.2/gcc_64/include/QtFontDatabaseSupport:$HOME/Qt/5.15.2/gcc_64/include/QtGamepad:$HOME/Qt/5.15.2/gcc_64/include/QtGlxSupport:$HOME/Qt/5.15.2/gcc_64/include/QtGui:$HOME/Qt/5.15.2/gcc_64/include/QtHelp:$HOME/Qt/5.15.2/gcc_64/include/QtInputSupport:$HOME/Qt/5.15.2/gcc_64/include/QtKmsSupport:$HOME/Qt/5.15.2/gcc_64/include/QtLinuxAccessibilitySupport:$HOME/Qt/5.15.2/gcc_64/include/QtLocation:$HOME/Qt/5.15.2/gcc_64/include/QtMultimedia:$HOME/Qt/5.15.2/gcc_64/include/QtMultimediaGstTools:$HOME/Qt/5.15.2/gcc_64/include/QtMultimediaQuick:$HOME/Qt/5.15.2/gcc_64/include/QtMultimediaWidgets:$HOME/Qt/5.15.2/gcc_64/include/QtNetwork:$HOME/Qt/5.15.2/gcc_64/include/QtNfc:$HOME/Qt/5.15.2/gcc_64/include/QtOpenGL:$HOME/Qt/5.15.2/gcc_64/include/QtOpenGLExtensions:$HOME/Qt/5.15.2/gcc_64/include/QtPacketProtocol:$HOME/Qt/5.15.2/gcc_64/include/QtPlatformCompositorSupport:$HOME/Qt/5.15.2/gcc_64/include/QtPlatformHeaders:$HOME/Qt/5.15.2/gcc_64/include/QtPositioning:$HOME/Qt/5.15.2/gcc_64/include/QtPositioningQuick:$HOME/Qt/5.15.2/gcc_64/include/QtPrintSupport:$HOME/Qt/5.15.2/gcc_64/include/QtQml:$HOME/Qt/5.15.2/gcc_64/include/QtQmlDebug:$HOME/Qt/5.15.2/gcc_64/include/QtQmlModels:$HOME/Qt/5.15.2/gcc_64/include/QtQmlWorkerScript:$HOME/Qt/5.15.2/gcc_64/include/QtQuick:$HOME/Qt/5.15.2/gcc_64/include/QtQuickControls2:$HOME/Qt/5.15.2/gcc_64/include/QtQuickParticles:$HOME/Qt/5.15.2/gcc_64/include/QtQuickShapes:$HOME/Qt/5.15.2/gcc_64/include/QtQuickTemplates2:$HOME/Qt/5.15.2/gcc_64/include/QtQuickTest:$HOME/Qt/5.15.2/gcc_64/include/QtQuickWidgets:$HOME/Qt/5.15.2/gcc_64/include/QtRemoteObjects:$HOME/Qt/5.15.2/gcc_64/include/QtRepParser:$HOME/Qt/5.15.2/gcc_64/include/QtScxml:$HOME/Qt/5.15.2/gcc_64/include/QtSensors:$HOME/Qt/5.15.2/gcc_64/include/QtSerialBus:$HOME/Qt/5.15.2/gcc_64/include/QtSerialPort:$HOME/Qt/5.15.2/gcc_64/include/QtServiceSupport:$HOME/Qt/5.15.2/gcc_64/include/QtSql:$HOME/Qt/5.15.2/gcc_64/include/QtSvg:$HOME/Qt/5.15.2/gcc_64/include/QtTest:$HOME/Qt/5.15.2/gcc_64/include/QtTextToSpeech:$HOME/Qt/5.15.2/gcc_64/include/QtThemeSupport:$HOME/Qt/5.15.2/gcc_64/include/QtUiPlugin:$HOME/Qt/5.15.2/gcc_64/include/QtUiTools:$HOME/Qt/5.15.2/gcc_64/include/QtVulkanSupport:$HOME/Qt/5.15.2/gcc_64/include/QtWaylandClient:$HOME/Qt/5.15.2/gcc_64/include/QtWebChannel:$HOME/Qt/5.15.2/gcc_64/include/QtWebSockets:$HOME/Qt/5.15.2/gcc_64/include/QtWebView:$HOME/Qt/5.15.2/gcc_64/include/QtWidgets:$HOME/Qt/5.15.2/gcc_64/include/QtX11Extras:$HOME/Qt/5.15.2/gcc_64/include/QtXkbCommonSupport:$HOME/Qt/5.15.2/gcc_64/include/QtXml:$HOME/Qt/5.15.2/gcc_64/include/QtXmlPatterns" +export CPLUS_INCLUDE_PATH="~/test/cppDev/imgui/imgui/backends:~/test/cppDev/imgui-sfml:~/test/cppDev/imgui/imgui/imgui.h" +# export C_INCLUDE_PATH="/home/pengu/test/minix/minix/include:/home/pengu/test/minix/include:/home/pengu/test/minix/sys/sys/ansi.h" + # Path to your oh-my-zsh installation. #installation via script from github export ZSH="/home/$USER/.oh-my-zsh" @@ -13,12 +19,14 @@ export ZSH="/home/$USER/.oh-my-zsh" # See https://github.com/ohmyzsh/ohmyzsh/wiki/Themes # if you installed the package oh-my-zsh-powerline-theme-git then you type here "powerline" as zsh theme # ZSH_THEME="gnzh" # set by `omz` -ZSH_THEME="robbyrussell" -#ZSH_THEME="bira" # set by `omz` +# ZSH_THEME="robbyrussell" +# ZSH_THEME="bira" # set by `omz` # ZSH_THEME="gozilla" # set by `omz` # ZSH_THEME="random" # set by `omz` # ZSH_THEME="lukerandall" # set by `omz` +# Starship prompt +eval "$(starship init zsh)" # Set list of themes to pick from when loading at random # Setting this variable when ZSH_THEME=random will cause zsh to load @@ -83,9 +91,9 @@ COMPLETION_WAITING_DOTS="true" # Custom plugins may be added to ~/.oh-my-zsh/custom/plugins/ # Example format: plugins=(rails git textmate ruby lighthouse) # Add wisely, as too many plugins slow down shell startup. -plugins=(copyfile copypath web-search zsh-autosuggestions vi-mode autojump git z) +plugins=(copyfile copypath web-search zsh-autosuggestions vi-mode git z colorize zsh-syntax-highlighting) -#(cat ~/.cache/wal/sequences &) +# (cat ~/.cache/wal/sequences &) source $ZSH/oh-my-zsh.sh @@ -143,6 +151,16 @@ if [ -d "$HOME/.aliases" ] ; fi +# vsed = mix of vim and sed to interactively find and replaced in files +vsed() { + search=$1 + replace=$2 + shift + shift + vim -c "bufdo! set eventignore-=Syntax|%s/$search/$replace/gce" **/*.$3 +} + + # # ex = EXtractor for all kinds of archives # # usage: ex <file> ex () @@ -190,4 +208,23 @@ ex () #sysinfo #sysinfo-retro #cpufetch -#colorscript random +colorscript random + +# >>> conda initialize >>> +# !! Contents within this block are managed by 'conda init' !! +__conda_setup="$('/home/pengu/miniconda3/bin/conda' 'shell.zsh' 'hook' 2> /dev/null)" +if [ $? -eq 0 ]; then + eval "$__conda_setup" +else + if [ -f "/home/pengu/miniconda3/etc/profile.d/conda.sh" ]; then + . "/home/pengu/miniconda3/etc/profile.d/conda.sh" + else + export PATH="/home/pengu/miniconda3/bin:$PATH" + fi +fi +unset __conda_setup +# <<< conda initialize <<< + + +source /home/pengu/.config/broot/launcher/bash/br + |
