Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 10 additions & 3 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,7 +1,14 @@
.DS_STORE

history/*
./bash_*
/bash_*

/sandbox
scripts/.fzf*
/sandbox
scripts/.fzf*
bash/scripts/.nvimlog

backup/
plugged/
undodir/
fonts/
.netrwhist
2 changes: 1 addition & 1 deletion .inputrc
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
set editing-mode = vi
set editing-mode vi
set blink-matching-paren on
set colored-stats on
set completion-ignore-case on
Expand Down
26 changes: 25 additions & 1 deletion bash/bash_profile
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
# Set environment variables and startup programs here.

echo "$(bash --version | head -2)"
echo "akljdlkajdlk $DIR"
shopt -q login_shell && echo -e "\nSourced .bash_profile" || echo -e "\nSourced .profile"

if [[ -n $SSH_CONNECTION ]]; then
Expand All @@ -13,3 +12,28 @@ else
fi

[[ -f "$HOME/.bashrc" ]] && source "$HOME/.bashrc"
export PATH="/home/linuxbrew/.linuxbrew/bin:$PATH"
export MANPATH="/home/linuxbrew/.linuxbrew/share/man:$MANPATH"
export INFOPATH="/home/linuxbrew/.linuxbrew/share/info:$INFOPATH"
export PATH="$PATH:/opt/yarn-[version]/bin"

# export ZEPHYR_TOOLCHAIN_VARIANT="gnuarmemb"
export GNUARMEMB_TOOLCHAIN_PATH="/home/tlcie/gcc-arm-none-eabi-10-2020-q4-major"

# Added by serverless binary installer
export PATH="$HOME/.serverless/bin:$PATH"
export SSHAGENT=/usr/bin/ssh-agent
export SSHAGENTARGS="-s"
if [ -z "$SSH_AUTH_SOCK" -a -x "$SSHAGENT" ]; then
eval `$SSHAGENT $SSHAGENTARGS`
trap "kill $SSH_AGENT_PID" 0
fi
if [ -e /home/tlcie/.nix-profile/etc/profile.d/nix.sh ]; then . /home/tlcie/.nix-profile/etc/profile.d/nix.sh; fi # added by Nix installer


export PATH=$PATH:"/mnt/c/Users/telne/AppData/Local/Programs/Microsoft VS Code/bin"

export PATH="$PATH:/home/tlcie/.local/bin"

export VOLTA_HOME="$HOME/.volta"
export PATH="$VOLTA_HOME/bin:$PATH"
27 changes: 27 additions & 0 deletions bash/bashrc
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,33 @@ fi
export LESSOPEN="|/usr/local/bin/lesspipe.sh %s" LESS_ADVANCED_PREPROCESSOR=1
# [ -x /usr/bin/lesspipe ] && eval "$(SHELL=/bin/sh lesspipe)"


export PATH="$PATH:/usr/local/bin/"
export PATH="$PATH:$HOME/.npm-packages/bin"
[ -f ~/.go ] && source ~/.go
[ -f ~/.fzf.bash ] && source ~/.fzf.bash
export PATH=/home/tlcie/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin

export NVM_DIR="$HOME/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm
[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion" # This loads nvm bash_completion
#export DOCKER_HOST=tcp://localhost:2375

# tabtab source for packages
# uninstall by removing these lines
[ -f ~/.config/tabtab/__tabtab.bash ] && . ~/.config/tabtab/__tabtab.bash || true
export ZEPHYR_TOOLCHAIN_VARIANT=zephyr
export ZEPHYR_SDK_INSTALL_DIR=/home/tlcie/.local/zephyr-sdk-0.11.2

# The next line updates PATH for the Google Cloud SDK.
# if [ -f '/home/tlcie/google-cloud-sdk/path.bash.inc' ]; then . '/home/tlcie/google-cloud-sdk/path.bash.inc'; fi

# The next line enables shell command completion for gcloud.
# if [ -f '/home/tlcie/google-cloud-sdk/completion.bash.inc' ]; then . '/home/tlcie/google-cloud-sdk/completion.bash.inc'; fi

export PATH="$HOME/.yarn/bin:$HOME/.config/yarn/global/node_modules/.bin:$PATH"
export GOROOT=/usr/local/go
export GOPATH=$HOME/go
export PATH=$GOPATH/bin:$GOROOT/bin:$PATH
export VOLTA_HOME="$HOME/.volta"
export PATH="$VOLTA_HOME/bin:$PATH"
20 changes: 20 additions & 0 deletions bash/profile
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,23 @@ export SSH_AUTH_SOCK=~/.ssh/ssh-agent.sock
ssh-add -l 2>/dev/null >/dev/null
# if not valid, then start ssh-agent using $SSH_AUTH_SOCK
[ $? -ge 2 ] && ssh-agent -a "$SSH_AUTH_SOCK" >/dev/null

if [ -d "$HOME/bin" ] ; then
PATH="$PATH:$HOME/bin"
fi

PATH="$HOME/.npm-global/bin:$PATH"


# GOPATH="$HOME/.go"
# export GOPATH
# PATH=$PATH:$GOPATH/bin # Add GOPATH/bin to PATH for scripting

PATH="$PATH:/mnt/c/Users/telne/AppData/Local/Programs/Microsoft VS Code"

if [ -d "$HOME/.local/bin" ] ; then
PATH="$HOME/.local/bin:$PATH"
fi

export VOLTA_HOME="$HOME/.volta"
export PATH="$VOLTA_HOME/bin:$PATH"
3 changes: 2 additions & 1 deletion bash/scripts/aliases → bash/utils/aliases
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ alias vim=nvim
fi

dir="$(pwd)"
alias als="vim $dir/aliases"
alias als="vim $(dir)/.aliases"
alias afind='ack -il'
alias history='fc -l 1'
alias l='ls -lah'
Expand All @@ -20,6 +20,7 @@ alias pu='pushd'
alias rd='rmdir'
alias cp='cp -i'
alias mv='mv -i'
alias algs='cd ~/Programs/algoRepl'

# Search
alias grep='grep $grep_opts'
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
14 changes: 13 additions & 1 deletion bash/scripts/prompt → bash/utils/prompt
Original file line number Diff line number Diff line change
Expand Up @@ -53,4 +53,16 @@

export CLICOLOR=1
export LS_COLORS='di=36:fi=0:ln=94:pi=0:so=5:bd=0:cd=0:or=91:mi=31:ex=92:*.rpm=90'
export PS1="[${blu}\u${red}@${grn}\\h:${nc}\W]${light_cyn}$(parse_git_branch)${nc} "
update_PS1 () {

export PS1="[${blu}\u${red}@${grn}\\h:${nc}\\W]${light_cyn}$(git_current_branch)${nc}\\n>> "

# export PS1="\[\u@\h \W]@$(git_current_branch)${nc}$\\n"

# export PS1="\[${blu}\u${red}@${grn}\\h:${nc}\W\]${light_cyn}$(git_current_branch)${nc}\"
# export PS1="\[\e[33;41m\][\[\e[m\]\[\e[32m\]\u\[\e[m\]\[\e[36m\]@\[\e[m\]\[\e[34m\]\h\[\e[m\]\[\e[33;41m\]]\[\e[m\]${git_current_branch}${nc}${ex} "

}
shopt -u promptvars
PROMPT_COMMAND=update_PS1

12 changes: 12 additions & 0 deletions docker
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
#!/bin/bash


ports() {
netstat -tulpn | grep LISTEN
}

docker-ips() {
docker inspect -f '{{range .NetworkSettings.Networks}}{{.IPAddress}}{{end}} %tab% {{.Name}}' $(docker ps -aq) | sed 's#%tab%#\t#g' | sed 's#/##g' | sort -t . -k 1,1n -k 2,2n -k 3,3n -k 4,4n
}


57 changes: 33 additions & 24 deletions install
Original file line number Diff line number Diff line change
@@ -1,14 +1,15 @@
#!/usr/bin/env bash

#set -e
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" >/dev/null 2>&1 && pwd)"
echo "Repository is located at $DIR"
cd $DIR
export REPO="`git rev-parse --show-toplevel`"
export REPO="$(git rev-parse --show-toplevel)"
export BASH_DIR=$REPO/bash
export SCRIPTS=$BASH_DIR/utils

function init() {
BASH_DIR=$REPO/bash
SCRIPTS=$BASH_DIR/scripts
echo $SCRIPTS
BASH_SRC=bash_"$(date +%s)"
touch -f $BASH_SRC

Expand All @@ -30,48 +31,56 @@ function script_init() {

function generate_config() {
echo -e "\nGenerating sources from $SCRIPTS"
echo "alias dotfiles='cd $DIR'" >> $REPO/$BASH_SRC
echo "alias srcbash='. $DIR/install'" >> $REPO/$BASH_SRC
for f in $SCRIPTS/*
do
echo "alias dotfiles='cd $DIR'" >>$REPO/$BASH_SRC
echo "alias srcbash='. $DIR/install'" >>$REPO/$BASH_SRC
for f in $SCRIPTS/*; do
echo $f
cat $f >> $BASH_SRC
cat $f >>$BASH_SRC
done
os_patch
echo "Done."
}

# Path mismatches in supported command flags
function os_patch() {
OS="`uname -s`"
OS="$(uname -s)"
ARCH="uname -m"
case $OS in
'Linux')
OS='Linux'
echo "alias ls='ls --color=auto'" >> $BASH_SRC
;;
'FreeBSD')
OS='FreeBSD'
echo "alias ls='ls -G'" >> $BASH_SRC
;;
'Darwin')
OS='Mac'
;;
*) ;;
'Linux')
OS='Linux'
echo "alias ls='ls --color=auto'" >>$BASH_SRC
;;
'FreeBSD')
OS='FreeBSD'
echo "alias ls='ls -G'" >>$BASH_SRC
;;
'Darwin')
OS='Mac'
;;
*) ;;
esac
}

function link_bash() {
for f in $BASH_DIR/*
do
for f in $BASH_DIR/*; do
FILENAME=$(basename $f)
[[ -f $f ]] && ln -fsn -v $f $HOME/.$FILENAME
done
}

function link_tmux() {
if [ -d "$dir/.tmux" ]; then :; else
echo -e "\nFound tmux configuration. Overwriting tmux conf files."
eval ln -s -f $dir/tmux/.tmux.conf ~/.tmux.conf
eval cp $dir/tmux/.tmux.conf.local ~/.tmux.conf.local
fi

}

init
echo '------ Symlinking... ------'
link_bash
link_tmux
echo '------ Done ------'

# source $BASH_DIR/bash_profile
Expand Down
21 changes: 21 additions & 0 deletions kitty/current-theme.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
background #000000
foreground #e9e9e9
cursor #e9e9e9
selection_background #424242
color0 #000000
color8 #000000
color1 #d44d53
color9 #d44d53
color2 #b9c949
color10 #b9c949
color3 #e6c446
color11 #e6c446
color4 #79a6da
color12 #79a6da
color5 #c396d7
color13 #c396d7
color6 #70c0b1
color14 #70c0b1
color7 #fffefe
color15 #fffefe
selection_foreground #000000
1 change: 1 addition & 0 deletions kitty/kitty.conf
31 changes: 31 additions & 0 deletions macprefs
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@

// Remove login desktop picture for quicker startup
defaults write /Library/Preferences/com.apple.loginwindow DesktopPicture ""

// Enable text selection in quick view window
defaults write com.apple.finder QLEnableTextSelection -bool true && killall Finder

// you can adjust the animation speeds by changing the number after the -float flag。
defaults write com.apple.dock expose-animation-duration -float 0.15 && killall Dock


// "Differentiate Without Color" accessibility setting. This setting changes the user interface to not rely on color to convey information, which can reduce the complexity of the display and potentially improve performance.
defaults write com.apple.Accessibility DifferentiateWithoutColor -int 1

// "Reduce Motion" accessibility setting. This setting reduces the use of animation and certain visual effects in macOS. This can help improve performance by reducing the demand on your Mac's graphics processing.
defaults write com.apple.Accessibility ReduceMotionEnabled -int 1

// Same thing as the previous command, but for a different system setting. It's a bit redundant, but it doesn't hurt to include it.
defaults write com.apple.universalaccess reduceMotion -int 1

// "Reduce Transparency" accessibility setting. This setting reduces the use of transparency and blur effects throughout macOS, which can also help improve performance by reducing the demand on your Mac's graphics processing.
defaults write com.apple.universalaccess reduceTransparency -int 1

// Remove the auto-hide Dock delay
defaults write com.apple.dock autohide-delay -float 0

// Apply the changes immediately
killall Dock

// Show hidden files in finder
defaults write com.apple.Finder AppleShowAllFiles true
5 changes: 5 additions & 0 deletions nvim/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
backup/
plugged/
undodir/
fonts/
.netrwhist
54 changes: 54 additions & 0 deletions nvim/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
# nvim
A neovim configuration repo with many plugins that for more easily to install and configure your neovim!

## QUICK way to get it!
> For ubuntu

#### 1. First of all install them

```shell
bash <(curl -s https://raw.githubusercontent.com/hiyali/nvim/master/scripts/install-in-ubuntu.sh)
```

#### 2. And then install plugins!

```shell
nvim ~/.config/nvim/config/init.vimrc
:PlugInstall <ENTER>
```

---

## Requirements
* [neovim](https://github.com/neovim/neovim/wiki/Installing-Neovim)
* [python3](https://www.python.org/)
* [nerd-fonts](https://github.com/ryanoasis/nerd-fonts#font-installation)

## Install & Configure
### 1. Install - Homebrew (macOS) / Linuxbrew (Linux)
```shell
brew install neovim
pip3 install neovim
```

### 2. Font
```shell
cd ~/Library/Fonts && curl -fLo "Droid Sans Mono for Powerline Nerd Font Complete.otf" https://raw.githubusercontent.com/ryanoasis/nerd-fonts/master/patched-fonts/DroidSansMono/complete/Droid%20Sans%20Mono%20for%20Powerline%20Nerd%20Font%20Complete.otf
```
And set your terminal fonts to "Droid Sans Mono for Powerline Nerd Font Complete"

### 3. Configurations & Plugins
```shell
git clone https://github.com/hiyali/nvim.git ~/.config/nvim
nvim ~/.config/nvim/config/init.vimrc
:PlugInstall <ENTER>
```

## Usage docs
[wiki](https://github.com/hiyali/nvim/wiki)

## Screenshot
![nvim](https://raw.githubusercontent.com/hiyali/nvim/master/assets/images/nvim-readme.png "nvim")

## Contribute
> Feel free
Binary file added nvim/assets/images/nvim-readme.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions nvim/autoload/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
!plug.vim
Loading