mirror of
https://github.com/js0ny/dotfiles.git
synced 2025-12-21 00:33:00 +00:00
minor fix
This commit is contained in:
parent
6a84917074
commit
711730d9ee
3 changed files with 28 additions and 28 deletions
|
|
@ -61,3 +61,8 @@ set directory=$XDG_STATE_HOME/vim/swap
|
|||
set undodir=$XDG_STATE_HOME/vim/undo
|
||||
set viewdir=$XDG_STATE_HOME/vim/view
|
||||
" set shada+=n$XDG_STATE_HOME/vim/shada
|
||||
" Leader
|
||||
let mapleader = "\<Space>"
|
||||
nnoremap <leader><leader> :FZF<CR>
|
||||
" Misc
|
||||
syntax on
|
||||
|
|
|
|||
|
|
@ -1,4 +1,3 @@
|
|||
;; vim:ft=kmonad
|
||||
;; Linux kmonad.kbd
|
||||
|
||||
(defcfg
|
||||
|
|
|
|||
|
|
@ -3,20 +3,20 @@
|
|||
# ~/.bash_aliases
|
||||
# or in if antidots and wheel
|
||||
# ~/.config/bash/bash_aliases
|
||||
if command -v zoxide > /dev/null ; then
|
||||
if command -v zoxide >/dev/null; then
|
||||
eval "$(zoxide init bash)"
|
||||
# Relative navigation #
|
||||
# Relative navigation #
|
||||
alias ..="z .."
|
||||
alias ...="z ../.."
|
||||
alias ....="z ../../.."
|
||||
alias .....="z ../../../.."
|
||||
alias ......="z ../../../../.."
|
||||
# Use `-` to jump to the previous directory
|
||||
# Oh-My-Zsh defines a similar one
|
||||
-(){
|
||||
# Use `-` to jump to the previous directory
|
||||
# Oh-My-Zsh defines a similar one
|
||||
-() {
|
||||
z -
|
||||
}
|
||||
zls(){
|
||||
zls() {
|
||||
cd $1 && ls
|
||||
}
|
||||
else
|
||||
|
|
@ -30,7 +30,6 @@ else
|
|||
}
|
||||
fi
|
||||
|
||||
|
||||
alias ni=touch
|
||||
alias cls=clear
|
||||
alias ii=open
|
||||
|
|
@ -45,7 +44,7 @@ alias sn="sudo nvim -u ~/.config/nvim/init.lua"
|
|||
|
||||
# Dev #
|
||||
alias gpp='g++ -std=c++2b' # Set the default C++ standard to C++20
|
||||
alias gcc='gcc -std=c99' # Set the default C standard to C99
|
||||
alias gcc='gcc -std=c99' # Set the default C standard to C99
|
||||
alias cl='clang -std=c99'
|
||||
alias clpp='clang++ -std=c++2b'
|
||||
alias python=python3 # Set the default Python version to Python 3
|
||||
|
|
@ -54,9 +53,10 @@ alias ipy=ipython
|
|||
|
||||
alias g=lazygit
|
||||
|
||||
alias doomd="emacsclient -t ~/.config/doom/"
|
||||
|
||||
# lsd - modern ls
|
||||
if command -v lsd > /dev/null; then
|
||||
if command -v lsd >/dev/null; then
|
||||
alias ls='lsd'
|
||||
alias l='lsd -lah'
|
||||
alias ll='lsd -l'
|
||||
|
|
@ -68,46 +68,44 @@ else
|
|||
alias ll='ls -l'
|
||||
fi
|
||||
|
||||
|
||||
# Functions #
|
||||
mkcd() {
|
||||
mkdir -p $1 && cd $1
|
||||
mkdir -p $1 && cd $1
|
||||
}
|
||||
cdls(){
|
||||
cd $1 && ls
|
||||
cdls() {
|
||||
cd $1 && ls
|
||||
}
|
||||
tc(){
|
||||
touch $1 && code $1
|
||||
tc() {
|
||||
touch $1 && code $1
|
||||
}
|
||||
tv(){
|
||||
touch $1 && nvim $1
|
||||
tv() {
|
||||
touch $1 && nvim $1
|
||||
}
|
||||
mt(){
|
||||
mt() {
|
||||
mkdir -p $(dirname $1) && touch $1
|
||||
}
|
||||
mtv(){
|
||||
mtv() {
|
||||
mkdir -p $(dirname $1) && touch $1 && nvim $1
|
||||
}
|
||||
|
||||
|
||||
alias update="source $DOTFILES/scripts/update.zsh"
|
||||
|
||||
if command -v pacman > /dev/null; then
|
||||
if command -v pacman >/dev/null; then
|
||||
alias pac="sudo pacman"
|
||||
alias paci="sudo pacman -S"
|
||||
alias pacr="sudo pacman -R"
|
||||
alias pacu="sudo pacman -Syu"
|
||||
alias pacl="pacman -Q"
|
||||
if command -v paru > /dev/null; then
|
||||
if command -v paru >/dev/null; then
|
||||
alias pacs="paru -Ss"
|
||||
elif command -v yay > /dev/null; then
|
||||
elif command -v yay >/dev/null; then
|
||||
alias pacs="yay -Ss"
|
||||
else
|
||||
alias pacs="pacman -Ss"
|
||||
fi
|
||||
fi
|
||||
|
||||
if command -v apt > /dev/null; then
|
||||
if command -v apt >/dev/null; then
|
||||
alias apt="sudo apt"
|
||||
alias apti="sudo apt install"
|
||||
alias aptr="sudo apt remove"
|
||||
|
|
@ -116,7 +114,7 @@ if command -v apt > /dev/null; then
|
|||
alias aptl="apt list --installed"
|
||||
fi
|
||||
|
||||
if command -v brew > /dev/null; then
|
||||
if command -v brew >/dev/null; then
|
||||
alias brewi="brew install"
|
||||
alias brewr="brew uninstall"
|
||||
alias brewu="brew update && brew upgrade"
|
||||
|
|
@ -124,8 +122,6 @@ if command -v brew > /dev/null; then
|
|||
alias brewl="brew list"
|
||||
fi
|
||||
|
||||
|
||||
|
||||
# TODO: Does not work
|
||||
if [ "$TERM" = "xterm-ghostty" ] || [ "$TERM" = "xterm-kitty" ]; then
|
||||
alias icat="kitten icat"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue