Configure tmux

This commit is contained in:
Fabio Scotto di Santolo
2024-02-21 16:09:27 +01:00
parent 0737d151fa
commit 4449d9da58
12 changed files with 37 additions and 28 deletions

View File

@@ -23,3 +23,5 @@
unmerged = yellow unmerged = yellow
[help] [help]
autocorrect = 30 autocorrect = 30
[init]
defautlBranch = main

View File

@@ -1,6 +1,3 @@
# Fig pre block. Keep at the top of this file.
[[ -f "$HOME/.fig/shell/profile.pre.bash" ]] && builtin source "$HOME/.fig/shell/profile.pre.bash"
# Load profiles from /etc/profile.d # Load profiles from /etc/profile.d
if test -d $HOME/.profile.d/; then if test -d $HOME/.profile.d/; then
for profile in $HOME/.profile.d/*.sh; do for profile in $HOME/.profile.d/*.sh; do
@@ -8,7 +5,3 @@ if test -d $HOME/.profile.d/; then
done done
unset profile unset profile
fi fi
# Fig post block. Keep at the bottom of this file.
[[ -f "$HOME/.fig/shell/profile.post.bash" ]] && builtin source "$HOME/.fig/shell/profile.post.bash"
. "$HOME/.cargo/env"

View File

@@ -1,5 +1,16 @@
# Change command shortcut
unbind C-b unbind C-b
set -g prefix C-x set -g prefix C-x
bind C-x send-prefix bind C-x send-prefix
set -g default-terminal "screen-256color"
# List of plugins
set -g @plugin 'tmux-plugins/tpm'
set -g @plugin 'tmux-plugins/tmux-sensible'
set -g @plugin 'erikw/tmux-powerline'
set -g @plugin 'tmux-plugins/tmux-open'
#set -g @plugin 'alexchaichan/tmux-spotify-tui'
set-option -g @plugin 'b0o/tmux-autoreload'
# Initialize TMUX plugin manager (keep this line at the very bottom of tmux.conf)
run '~/.tmux/plugins/tpm/tpm'

Submodule .tmux/plugins/tmux-autoreload added at e98aa3b74c

Submodule .tmux/plugins/tmux-open added at 763d0a852e

Submodule .tmux/plugins/tmux-powerline added at 8e0f92da9b

Submodule .tmux/plugins/tmux-sensible added at 25cb91f42d

Submodule .tmux/plugins/tmux-spotify-tui added at d03e5ec544

1
.tmux/plugins/tpm Submodule

Submodule .tmux/plugins/tpm added at 99469c4a9b

1
linux/.profile.d/deno.sh Normal file
View File

@@ -0,0 +1 @@
export DENO_INSTALL="$HOME/.deno"

View File

@@ -8,12 +8,12 @@ function appendpath() {
} }
appendpath "$GOPATH/bin" appendpath "$GOPATH/bin"
appendpath "$DENO_INSTALL/bin"
appendpath "$HOME/.local/bin" appendpath "$HOME/.local/bin"
appendpath $HOME/.local/share/gem/ruby/3.0.0/bin
unset appendpath unset appendpath
#THIS MUST BE AT THE END OF THE FILE FOR SDKMAN TO WORK!!! #THIS MUST BE AT THE END OF THE FILE FOR SDKMAN TO WORK!!!
export SDKMAN_DIR="$HOME/.sdkman" export SDKMAN_DIR="$HOME/.sdkman"
[[ -s "$HOME/.sdkman/bin/sdkman-init.sh" ]] && source "$HOME/.sdkman/bin/sdkman-init.sh" [[ -s "$HOME/.sdkman/bin/sdkman-init.sh" ]] && source "$HOME/.sdkman/bin/sdkman-init.sh"
. "$HOME/.cargo/env"

View File

@@ -9,6 +9,7 @@ export ZSH="$HOME/.oh-my-zsh"
# to know which specific one was loaded, run: echo $RANDOM_THEME # to know which specific one was loaded, run: echo $RANDOM_THEME
# See https://github.com/ohmyzsh/ohmyzsh/wiki/Themes # See https://github.com/ohmyzsh/ohmyzsh/wiki/Themes
ZSH_THEME="powerlevel10k/powerlevel10k" ZSH_THEME="powerlevel10k/powerlevel10k"
#ZSH_THEME="robbyrussell"
# Set list of themes to pick from when loading at random # Set list of themes to pick from when loading at random
# Setting this variable when ZSH_THEME=random will cause zsh to load # Setting this variable when ZSH_THEME=random will cause zsh to load
@@ -71,9 +72,11 @@ ZSH_CUSTOM=$ZSH/custom
# Example format: plugins=(rails git textmate ruby lighthouse) # Example format: plugins=(rails git textmate ruby lighthouse)
# Add wisely, as too many plugins slow down shell startup. # Add wisely, as too many plugins slow down shell startup.
plugins=( plugins=(
aws
colored-man-pages colored-man-pages
colorize colorize
command-not-found command-not-found
dnf
docker docker
docker-compose docker-compose
docker-machine docker-machine
@@ -85,24 +88,26 @@ plugins=(
gitignore gitignore
git-prompt git-prompt
golang golang
httpie helm
jsontools jsontools
kubectl kubectl
lein lein
man man
minikube minikube
mvn mvn
oc
operator-sdk
pep8 pep8
poetry poetry
pip pip
profiles profiles
pylint pylint
python python
rustup ssh-agent
themes themes
tmux tmux
vscode
web-search web-search
zsh-cargo-completion
zsh-navigation-tools zsh-navigation-tools
) )
@@ -116,30 +121,21 @@ source $ZSH/oh-my-zsh.sh
# export LANG=en_US.UTF-8 # export LANG=en_US.UTF-8
# Preferred editor for local and remote sessions # Preferred editor for local and remote sessions
# if [[ -n $SSH_CONNECTION ]]; then if [[ -n $SSH_CONNECTION ]]; then
# export EDITOR='vim' export EDITOR='vim'
# else else
# export EDITOR='mvim' export EDITOR='nvim'
# fi fi
# Compilation flags # Compilation flags
# export ARCHFLAGS="-arch x86_64" # 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"
# Setup emacs keymap # Setup emacs keymap
bindkey -e bindkey -e
autoload -U compinit && compinit autoload -U compinit && compinit
source "/usr/share/zsh/plugins/zsh-syntax-highlighting/zsh-syntax-highlighting.plugin.zsh" source "/usr/share/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh"
# To customize prompt, run `p10k configure` or edit ~/.p10k.zsh. # To customize prompt, run `p10k configure` or edit ~/.p10k.zsh.
[[ ! -f ~/.p10k.zsh ]] || source ~/.p10k.zsh [[ ! -f ~/.p10k.zsh ]] || source ~/.p10k.zsh