Change various things
This commit is contained in:
parent
281ea9f354
commit
8a9503b95a
7 changed files with 21 additions and 8 deletions
|
|
@ -1,3 +1,5 @@
|
|||
if exists /usr/bin/node && exists github-copilot-cli; then
|
||||
eval "$(github-copilot-cli alias -- "$0")"
|
||||
elif exists gh && gh extension list | grep copilot -q; then
|
||||
eval "$(gh copilot alias -- zsh)"
|
||||
fi
|
||||
|
|
|
|||
|
|
@ -384,3 +384,7 @@ alias Cgit="gh-copilot-cli git"
|
|||
alias Cgh="gh-copilot-cli gh"
|
||||
|
||||
alias e="nvim -c 'lua require(\"telescope.builtin\").fd { cwd = require(\"findroot\")(require(\"telescope.utils\").buffer_dir()) } '"
|
||||
|
||||
if [[ -e ${XDG_CONFIG_HOME}/broot/launcher/bash/br ]]; then
|
||||
source ${XDG_CONFIG_HOME}/broot/launcher/bash/br
|
||||
fi
|
||||
|
|
|
|||
1
env/01_xdg-fixes.zsh
vendored
1
env/01_xdg-fixes.zsh
vendored
|
|
@ -16,4 +16,3 @@ export TEXMFCONFIG=$XDG_CONFIG_HOME/texlive/texmf-config
|
|||
export TEXMFHOME=$XDG_DATA_HOME/texmf
|
||||
export TEXMFVAR=$XDG_CACHE_HOME/texlive/texmf-var
|
||||
export XINITRC="$XDG_CONFIG_HOME"/X11/xinitrc
|
||||
export _JAVA_OPTIONS="-Djava.util.prefs.userRoot=$XDG_CONFIG_HOME/java"
|
||||
|
|
|
|||
2
env/50_scala.zsh
vendored
2
env/50_scala.zsh
vendored
|
|
@ -1 +1 @@
|
|||
export SBT_OPTS="-XX:+CMSClassUnloadingEnabled -XX:MaxPermSize=10G -Xmx10G"
|
||||
export SBT_OPTS="-Xmx10G"
|
||||
|
|
|
|||
|
|
@ -1,6 +1,7 @@
|
|||
typeset -gA ZSH_HIGHLIGHT_STYLES
|
||||
|
||||
ZSH_HIGHLIGHT_HIGHLIGHTERS=(main brackets pattern)
|
||||
ZSH_HIGHLIGHT_DIRS_BLACKLIST+=(/mnt/)
|
||||
|
||||
if [[ "`tput colors`" == "256" ]] || [[ "`tput colors`" == "88" ]] ; then
|
||||
|
||||
|
|
|
|||
3
zshenv
3
zshenv
|
|
@ -1,3 +1,6 @@
|
|||
if [ -z "$ZDOTDIR" ]; then
|
||||
export ZDOTDIR=$HOME/.config/zsh
|
||||
fi
|
||||
exists() { command -v "$@" >/dev/null }
|
||||
function(){
|
||||
local i
|
||||
|
|
|
|||
16
zshrc
16
zshrc
|
|
@ -29,13 +29,16 @@ fpath=($ZDOTDIR/functions $fpath)
|
|||
|
||||
function exists { command -v "$@" >/dev/null }
|
||||
|
||||
# get a file from ZDOTDIR, return file in /etc/zsh if it does not exist
|
||||
# get a file from ZDOTDIR, return file in /etc/zsh if it does not exist. If both
|
||||
# don't exist, return the first of them.
|
||||
zdotfile() {
|
||||
if [[ -e $ZDOTDIR/$1 ]]; then
|
||||
echo $ZDOTDIR/$1
|
||||
else
|
||||
echo /etc/zsh/$1
|
||||
fi
|
||||
if [[ -e $ZDOTDIR/$1 ]]; then
|
||||
echo $ZDOTDIR/$1
|
||||
elif [[ -e /etc/zsh/$1 ]]; then
|
||||
echo /etc/zsh/$1
|
||||
else
|
||||
echo $ZDOTDIR/$1
|
||||
fi
|
||||
}
|
||||
try-source() {
|
||||
local i=0
|
||||
|
|
@ -109,6 +112,7 @@ if [[ -e $HOME/.calendars ]]; then
|
|||
fi
|
||||
|
||||
if exists mail; then
|
||||
MAILCHECK=0
|
||||
_prompt_cron_mails() {
|
||||
[[ ! -e $MAIL ]] && return
|
||||
local newmails=$(mail -Hf $MAIL | grep -c '^.N')
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue