Improve tmux auto-rename and cleanup Java alias
This commit is contained in:
parent
f9ec6d9958
commit
c04d756f0f
3 changed files with 13 additions and 23 deletions
25
README.md
25
README.md
|
@ -5,20 +5,26 @@ Built around Bash. Most supervitamined replacements stay optional.
|
||||||
## My friend programs
|
## My friend programs
|
||||||
|
|
||||||
- fish shell, fisher plugin manager
|
- fish shell, fisher plugin manager
|
||||||
- bash, [starship](https://starship.rs/) super prompt, [hishtory](https://github.com/ddworken/hishtory), [ls exa](https://github.com/rivy/rust.exa)
|
- bash, [starship](https://starship.rs/) super prompt,
|
||||||
- terminal multiplexer: [tmux](https://github.com/tmux/tmux), plugin manager [tpm](https://github.com/tmux-plugins/tpm) and session manager [tmuxp](https://github.com/tmux-python/tmuxp)
|
[hishtory](https://github.com/ddworken/hishtory),
|
||||||
|
[ls exa](https://github.com/rivy/rust.exa)
|
||||||
|
- terminal multiplexer: [tmux](https://github.com/tmux/tmux), plugin manager
|
||||||
|
[tpm](https://github.com/tmux-plugins/tpm) and session manager
|
||||||
|
[tmuxp](https://github.com/tmux-python/tmuxp)
|
||||||
- a swiss-knife to make life easier: [fzf](https://github.com/junegunn/fzf)
|
- a swiss-knife to make life easier: [fzf](https://github.com/junegunn/fzf)
|
||||||
- git: configuration and the terminal manager [tig](https://jonas.github.io/tig/)
|
- git: configuration and the terminal manager
|
||||||
|
[tig](https://jonas.github.io/tig/)
|
||||||
- vim: [vundle](https://github.com/VundleVim/Vundle.vim)
|
- vim: [vundle](https://github.com/VundleVim/Vundle.vim)
|
||||||
- languages: python, perl, java with [sdkman](https://sdkman.io/)
|
- languages: python, perl, java with [sdkman](https://sdkman.io/)
|
||||||
|
|
||||||
|
|
||||||
## Configuration file
|
## Configuration file
|
||||||
|
|
||||||
a sample file (located in *~/config/chezmoi/chezmoi.toml*)
|
a sample file (located in _~/config/chezmoi/chezmoi.toml_)
|
||||||
|
|
||||||
```toml
|
```toml
|
||||||
[data]
|
[data]
|
||||||
|
# unix username
|
||||||
|
username = ""
|
||||||
# git configuration
|
# git configuration
|
||||||
git_email = ""
|
git_email = ""
|
||||||
git_alias = ""
|
git_alias = ""
|
||||||
|
@ -26,12 +32,6 @@ a sample file (located in *~/config/chezmoi/chezmoi.toml*)
|
||||||
projectdir = "~/work"
|
projectdir = "~/work"
|
||||||
# deployment path for "d" command (java deploy)
|
# deployment path for "d" command (java deploy)
|
||||||
deploydir = "~/dist"
|
deploydir = "~/dist"
|
||||||
# Java versions from sdkman
|
|
||||||
java6_version = "6.0.119-zulu"
|
|
||||||
java7_version = "7.0.342-zulu"
|
|
||||||
java8_version = "8.0.302-open"
|
|
||||||
java11_version = "11.0.12-open"
|
|
||||||
java20_version = "20-open"
|
|
||||||
# extra certificate for NodeJs (PEM file) to trust HTTPS proxy
|
# extra certificate for NodeJs (PEM file) to trust HTTPS proxy
|
||||||
extra_ca_cert = "~/config/security/ca-node.pem"
|
extra_ca_cert = "~/config/security/ca-node.pem"
|
||||||
# Java truststore for Maven to trust HTTPS proxy
|
# Java truststore for Maven to trust HTTPS proxy
|
||||||
|
@ -45,4 +45,3 @@ a sample file (located in *~/config/chezmoi/chezmoi.toml*)
|
||||||
tmux_favorite3 = "myusualsshpassword"
|
tmux_favorite3 = "myusualsshpassword"
|
||||||
tmux_favorite4 = "export TERM=xterm"
|
tmux_favorite4 = "export TERM=xterm"
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
|
@ -1,12 +1,3 @@
|
||||||
#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"
|
||||||
|
|
||||||
# java
|
|
||||||
if [ -n "$(LC_ALL=C type -t sdk)" ] && [ "$(LC_ALL=C type -t sdk)" = function ]; then
|
|
||||||
alias java6='sdk use java {{ .java6_version }}'
|
|
||||||
alias java7='sdk use java {{ .java7_version }}'
|
|
||||||
alias java8='sdk use java {{ .java8_version }}'
|
|
||||||
alias java11='sdk use java {{ .java11_version}}'
|
|
||||||
alias jv='java -version'
|
|
||||||
fi
|
|
||||||
|
|
|
@ -55,7 +55,7 @@ setw -g visual-activity on
|
||||||
|
|
||||||
# Auto rename
|
# Auto rename
|
||||||
set-option -g automatic-rename on
|
set-option -g automatic-rename on
|
||||||
set-option -g automatic-rename-format '#{b:pane_current_path}'
|
set-option -g automatic-rename-format '#{b;s/{{ .username }}/~/:pane_current_path}'
|
||||||
|
|
||||||
# Allows us to use C-a a <command> to send commands to a TMUX session inside
|
# Allows us to use C-a a <command> to send commands to a TMUX session inside
|
||||||
# another TMUX session
|
# another TMUX session
|
Loading…
Add table
Reference in a new issue