Compare commits

..

4 Commits

Author SHA1 Message Date
Jan Jastrow
ff8d4a638d Remove PERL settings (not used anyway) 2023-09-04 04:10:37 +02:00
Jan Jastrow
df9430cde0 Speed shell up with 'fixed' thefuck 2023-09-04 04:05:57 +02:00
Jan Jastrow
2c0dd6666e Extend options and display . & .. 2023-09-04 03:52:51 +02:00
Jan Jastrow
bc5ef993c7 minor optimization 2023-09-04 03:45:54 +02:00
3 changed files with 12 additions and 19 deletions

View File

@ -13,7 +13,8 @@ fi
# Better exa
if [[ -x $(which exa) ]]; then
alias exa='pwd; exa -la --group-directories-first --git -g'
alias exa='pwd; exa --long --all --all --group-directories-first --git --group'
# --all (2x) to show `.` and `..` directories as well
fi
# Better lsd

20
zsh/env
View File

@ -49,14 +49,13 @@ fi
# Add syncthing synced binary folder to $PATH
if [[ $platform == 'macOS' ]]; then
export PATH="$HOME/SyncMac/Apps/bin/universal:$PATH"
export PATH="$HOME/SyncMac/Apps/bin/x86_64_rosetta2:$PATH"
if [[ $arch == 'arm' ]]; then
export PATH="$HOME/SyncMac/Apps/bin/arm64:$PATH"
export PATH="$HOME/SyncMac/Apps/bin/universal:$PATH"
export PATH="$HOME/SyncMac/Apps/bin/x86_64_rosetta2:$PATH"
elif [[ $arch == 'i386' ]]; then
export PATH="$HOME/SyncMac/Apps/bin/universal:$PATH"
export PATH="$HOME/SyncMac/Apps/bin/x86_64:$PATH"
export PATH="$HOME/SyncMac/Apps/bin/x86_64_rosetta2:$PATH"
fi
fi
@ -80,11 +79,10 @@ fi
# evals
#
# TheFuck
if [[ -x $(which thefuck) ]]; then
eval "$(thefuck --alias)"
# You can use whatever you want as an alias, like for Mondays:
eval "$(thefuck --alias FUCK)"
alias fuck='eval $(thefuck $(fc -ln -1 | tail -n 1)); fc -R'
# Replace default `thefuck` eval with suggestion from GitHub
# https://github.com/nvbn/thefuck/issues/859
if command -v thefuck >/dev/null 2>&1; then
fuck() {
eval "$(thefuck --alias)" && fuck
}
fi

6
zshrc
View File

@ -57,9 +57,3 @@ if [[ -d $HOME/.jan ]]; then
source "$HOME/.jan/credentials"
source "$HOME/.jan/zsh_options"
fi
PATH="/Users/jan/perl5/bin${PATH:+:${PATH}}"; export PATH;
PERL5LIB="/Users/jan/perl5/lib/perl5${PERL5LIB:+:${PERL5LIB}}"; export PERL5LIB;
PERL_LOCAL_LIB_ROOT="/Users/jan/perl5${PERL_LOCAL_LIB_ROOT:+:${PERL_LOCAL_LIB_ROOT}}"; export PERL_LOCAL_LIB_ROOT;
PERL_MB_OPT="--install_base \"/Users/jan/perl5\""; export PERL_MB_OPT;
PERL_MM_OPT="INSTALL_BASE=/Users/jan/perl5"; export PERL_MM_OPT;