Skip to content

Commit

Permalink
[zsh] add gl and cph aliases
Browse files Browse the repository at this point in the history
  • Loading branch information
dev99problems committed Dec 8, 2022
1 parent 2ca8d55 commit 7510e13
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 2 deletions.
1 change: 1 addition & 0 deletions kitty/kitty.conf
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ include dracula.conf

# keymaps
map ctrl+cmd+, load_config_file 🍎
# map cmd+t discard_event

mouse_map left press ungrabbed mouse_selection normal

Expand Down
13 changes: 12 additions & 1 deletion nvim/.config/nvim/lua/user/plugins_configs/treesitter.lua
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,18 @@ local utils = require('user.utils')
local configs = utils.safe_require('nvim-treesitter.configs')

configs.setup {
ensure_installed = { 'html', 'javascript', 'typescript', 'tsx', 'css', 'json', 'ruby', 'python', 'go', 'sql' },
ensure_installed = {
'html',
'javascript',
'typescript',
'tsx',
'css',
'json',
'ruby',
'python',
'go',
'sql'
},
-- ensure_installed = 'all',
sync_install = false,
ignore_install = { '' }, -- List of parsers to ignore installing
Expand Down
7 changes: 6 additions & 1 deletion zsh/.zshrc
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ RPROMPT='%{$fg_bold[blue]%} %T %D % %'
# aliases
## general
alias -g gr="grep"
alias sz="du -hs" # stands for size
alias sz="du -hs" # stands for getting the folder size

alias pbc="pbcopy"
alias pbp="pbpaste"
Expand All @@ -37,6 +37,7 @@ alias dkimg="dk images"
alias dkcnt="dk container ls"
alias finder="ofd"
alias here="ofd"
alias cph="pwd | pbc" # copy current path to clipboard

alias prev="cd -"
alias npmg="npm ls -g --depth=0"
Expand Down Expand Up @@ -81,6 +82,7 @@ alias gdifm="git diffmain"
alias grei="git rebase -i origin/master"
alias gm="git cho master"
alias gmm="git cho main"
alias gl="git last"
alias gb='git branch --sort=-committerdate | fzf --header Checkout | xargs git checkout'
# attempt-to-add: let to see git diff for untracked files
alias gdu='git add -N . && git diff'
Expand Down Expand Up @@ -229,3 +231,6 @@ export PATH="$PNPM_HOME:$PATH"
# bun
export BUN_INSTALL="$HOME/.bun"
export PATH="$BUN_INSTALL/bin:$PATH"

# bun completions
[ -s "/Users/${USER}/.bun/_bun" ] && source "/Users/${USER}/.bun/_bun"

0 comments on commit 7510e13

Please sign in to comment.