You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Here's a simple getting started for who might be interested in understanding my terminal config, or for my future self.
Notes
I use less as pager.
PATH is populated as follows (in order):
$HOME/bin2
$HOME/dotfiles/bin
/opt/local/{bin,sbin}
/usr/local/{bin,sbin}
$PATH
as stated in zsh/common/zsh_env.
~/.zsh_custom is automatically sourced if it exists, and ~/bin2 is automatically added to $PATH. Both are not part of the repo and can be used to add machine-specific customizations and other executables.
CDPATH is set in zsh/common/zsh_env file, even if I usually only set it in ~/.zsh_custom.
I use dandavision's delta as diff tool for git. Settings are declared in git/git_config.sh script.
grep is aliased to grep -i so it's always case-insensitive.
zsh shortcuts
Name
Action
ctrl+t
open fzf
zsh functions and aliases
Moving around
Name
Type
Action
mkcd
function
create a dir and cd into it
z
alias
jump around fasd_cd -d (requires fasd)
fzf
exec
fuzzy finder
fp
exec
filepreview, fuzzy finder with file preview pane powered by batcat (if installed)
cat
alias
replaced cat with batcat (if installed)
fd
alias
requiresfd-find, includes hidden items, excludes: .git,.idea,.sass-cache,node_modules,build,.rustup,.cache
Grepping
Name
Type
Action
grep
alias
grep -i, grep case-insensitive.
gg
alias
git grep -i, git grep case-insensitive.
Time
Name
Type
Action
today
function
print current date
now
function
print current datetime
epoch
alias
print epoch in seconds
Network
Name
Type
Action
myip
alias
get your public IP on Internet and location info
Cloud
Name
Type
Action
ghlr
function
gh-last-run, monitor or view last GitHub action workflow run (requires gh)
aws_token_clean
function
unset AWS_* auth vars
rat
function
Refresh AWS Tokens, useful for MFA enabled accounts
Internet-powered utils
Name
Type
Action
cs
function
show cheat sheet from cheat.sh, accepts 1 argument
wth
function
print weather
rates
function
print currency rates
Other
Name
Type
Action
termcolors
function
print all available terminal colors
dotfiles
function
update dotfiles repo
Check content of:
zsh/common/zsh_aliases file for a full list of aliases.
zsh/autoloaded dir for all available functions
VIM
Configuration paths
Editor
Item
Platform
Path
vim
config
*nix
$HOME/.vimrc
vim
dir
*nix
$HOME/.vim
vim
config
Win
$env:USERPROFILE\.vimrc
vim
dir
Win
$env:USERPROFILE\vimfiles
nvim
config
*nix
$XDG_CONFIG_HOME/nvim/init.vim
nvim
dir
*nix
$XDG_CONFIG_HOME/nvim
nvim
config
Win
$env:USERPROFILE\AppData\Local\nvim\init.vim
nvim
dir
Win
$env:USERPROFILE\AppData\Local\nvim
XDG_CONFIG_HOME is usually set to: $HOME/.config.
Mappings
Name
Action
jj
Esc
ctrl+s
rectangular selection
ctrl+t
toggle number and sign column
ctrl+y
toggle paste mode (avoid tab increments while pasting content)