mirror of
https://github.com/pratiktri/dotfiles.git
synced 2026-02-04 08:41:43 +05:30
gitconfig added
This commit is contained in:
6
.aliases
6
.aliases
@@ -1,7 +1,5 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
# Custom aliases
|
|
||||||
|
|
||||||
# Generic
|
# Generic
|
||||||
alias sb="source ~/.bashrc"
|
alias sb="source ~/.bashrc"
|
||||||
alias bashreload="source ~/.bashrc"
|
alias bashreload="source ~/.bashrc"
|
||||||
@@ -17,6 +15,7 @@ alias fgrep='fgrep --color=auto'
|
|||||||
alias usersearch="awk -F: '{print \"UserName: \" \$1 \", UserID: \" \$3 \", Home Dir: \" \$6 \", Shell Used: \" \$7}' /etc/passwd | grep"
|
alias usersearch="awk -F: '{print \"UserName: \" \$1 \", UserID: \" \$3 \", Home Dir: \" \$6 \", Shell Used: \" \$7}' /etc/passwd | grep"
|
||||||
# alias code="codium"
|
# alias code="codium"
|
||||||
|
|
||||||
|
|
||||||
# History
|
# History
|
||||||
alias histsearch="history | grep"
|
alias histsearch="history | grep"
|
||||||
alias hs="histsearch"
|
alias hs="histsearch"
|
||||||
@@ -88,9 +87,6 @@ git_push_all_changes(){
|
|||||||
git add . && git commit -am "${1}" && git push
|
git add . && git commit -am "${1}" && git push
|
||||||
}
|
}
|
||||||
|
|
||||||
# Add ~/.local/bin to PATH
|
|
||||||
export PATH="${HOME}"/.local/bin:$PATH
|
|
||||||
|
|
||||||
|
|
||||||
# For servers
|
# For servers
|
||||||
alias ngt="sudo nginx -t"
|
alias ngt="sudo nginx -t"
|
||||||
|
|||||||
19
.bashrc
19
.bashrc
@@ -184,18 +184,9 @@ jazz_my_prompt() {
|
|||||||
PS1="\n${group1}-${group2}-${group3}-${group4}-${group5}\n${group6}-${group9}-${group8}\n${isroot}${reset} "
|
PS1="\n${group1}-${group2}-${group3}-${group4}-${group5}\n${group6}-${group9}-${group8}\n${isroot}${reset} "
|
||||||
}
|
}
|
||||||
|
|
||||||
if [[ -f ~/.aliases ]]; then
|
[[ ! -f ~/.aliases ]] || source ~/.aliases
|
||||||
source ~/.aliases
|
[[ ! -f ~/.aliases_personal ]] || source ~/.aliases_personal
|
||||||
fi
|
[[ ! -f ~/.neon_alias ]] || source ~/.neon_alias
|
||||||
|
|
||||||
if [[ -f ~/.aliases_personal ]]; then
|
[[ ! -f ~/.gosetup ]] || source ~/.gosetup
|
||||||
source ~/.aliases_personal
|
[[ ! -f ~/.flutterpathsetup ]] || source ~/.flutterpathsetup
|
||||||
fi
|
|
||||||
|
|
||||||
if [[ -f ~/.gosetup ]]; then
|
|
||||||
source ~/.gosetup
|
|
||||||
fi
|
|
||||||
|
|
||||||
if [[ -f ~/.neon_alias ]]; then
|
|
||||||
source ~/.neon_alias
|
|
||||||
fi
|
|
||||||
|
|||||||
3
.gitconfig
Normal file
3
.gitconfig
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
[user]
|
||||||
|
email = mail@pratik.live
|
||||||
|
name = Pratik Tripathy
|
||||||
29
.profile
Normal file
29
.profile
Normal file
@@ -0,0 +1,29 @@
|
|||||||
|
# ~/.profile: executed by the command interpreter for login shells.
|
||||||
|
# This file is not read by bash(1), if ~/.bash_profile or ~/.bash_login
|
||||||
|
# exists.
|
||||||
|
# see /usr/share/doc/bash/examples/startup-files for examples.
|
||||||
|
# the files are located in the bash-doc package.
|
||||||
|
|
||||||
|
# the default umask is set in /etc/profile; for setting the umask
|
||||||
|
# for ssh logins, install and configure the libpam-umask package.
|
||||||
|
#umask 022
|
||||||
|
|
||||||
|
# if running bash
|
||||||
|
if [ -n "$BASH_VERSION" ]; then
|
||||||
|
# include .bashrc if it exists
|
||||||
|
if [ -f "$HOME/.bashrc" ]; then
|
||||||
|
. "$HOME/.bashrc"
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
|
# set PATH so it includes user's private bin if it exists
|
||||||
|
if [ -d "$HOME/bin" ] ; then
|
||||||
|
PATH="$HOME/bin:$PATH"
|
||||||
|
fi
|
||||||
|
|
||||||
|
# set PATH so it includes user's private bin if it exists
|
||||||
|
if [ -d "$HOME/.local/bin" ] ; then
|
||||||
|
PATH="$HOME/.local/bin:$PATH"
|
||||||
|
fi
|
||||||
|
|
||||||
|
export PATH="$HOME/.cargo/bin:/media/pratik/Personal_Projects/DevSetUps/IDEs/flutter/bin:$PATH"
|
||||||
65
.zshrc
65
.zshrc
@@ -26,24 +26,12 @@ CASE_SENSITIVE="true"
|
|||||||
# Case-sensitive completion must be off. _ and - will be interchangeable.
|
# Case-sensitive completion must be off. _ and - will be interchangeable.
|
||||||
# HYPHEN_INSENSITIVE="true"
|
# HYPHEN_INSENSITIVE="true"
|
||||||
|
|
||||||
# Uncomment the following line to disable bi-weekly auto-update checks.
|
|
||||||
# DISABLE_AUTO_UPDATE="true"
|
|
||||||
|
|
||||||
# Uncomment the following line to automatically update without prompting.
|
# Uncomment the following line to automatically update without prompting.
|
||||||
# DISABLE_UPDATE_PROMPT="true"
|
# DISABLE_UPDATE_PROMPT="true"
|
||||||
|
|
||||||
# Uncomment the following line to change how often to auto-update (in days).
|
|
||||||
# export UPDATE_ZSH_DAYS=13
|
|
||||||
|
|
||||||
# Uncomment the following line if pasting URLs and other text is messed up.
|
# Uncomment the following line if pasting URLs and other text is messed up.
|
||||||
# DISABLE_MAGIC_FUNCTIONS="true"
|
# DISABLE_MAGIC_FUNCTIONS="true"
|
||||||
|
|
||||||
# Uncomment the following line to disable colors in ls.
|
|
||||||
# DISABLE_LS_COLORS="true"
|
|
||||||
|
|
||||||
# Uncomment the following line to disable auto-setting terminal title.
|
|
||||||
# DISABLE_AUTO_TITLE="true"
|
|
||||||
|
|
||||||
# Uncomment the following line to enable command auto-correction.
|
# Uncomment the following line to enable command auto-correction.
|
||||||
# ENABLE_CORRECTION="true"
|
# ENABLE_CORRECTION="true"
|
||||||
|
|
||||||
@@ -55,22 +43,12 @@ COMPLETION_WAITING_DOTS="true"
|
|||||||
# much, much faster.
|
# much, much faster.
|
||||||
# DISABLE_UNTRACKED_FILES_DIRTY="true"
|
# DISABLE_UNTRACKED_FILES_DIRTY="true"
|
||||||
|
|
||||||
# Uncomment the following line if you want to change the command execution time
|
|
||||||
# stamp shown in the history command output.
|
|
||||||
# You can set one of the optional three formats:
|
|
||||||
# "mm/dd/yyyy"|"dd.mm.yyyy"|"yyyy-mm-dd"
|
# "mm/dd/yyyy"|"dd.mm.yyyy"|"yyyy-mm-dd"
|
||||||
# or set a custom format using the strftime function format specifications,
|
|
||||||
# see 'man strftime' for details.
|
# see 'man strftime' for details.
|
||||||
HIST_STAMPS="dd.mm.yyyy"
|
HIST_STAMPS="dd.mm.yyyy"
|
||||||
|
|
||||||
# Would you like to use another custom folder than $ZSH/custom?
|
|
||||||
# ZSH_CUSTOM=/path/to/new-custom-folder
|
|
||||||
|
|
||||||
# Which plugins would you like to load?
|
|
||||||
# Standard plugins can be found in $ZSH/plugins/
|
# Standard plugins can be found in $ZSH/plugins/
|
||||||
# Custom plugins may be added to $ZSH_CUSTOM/plugins/
|
# Custom plugins may be added to $ZSH_CUSTOM/plugins/
|
||||||
# Example format: plugins=(rails git textmate ruby lighthouse)
|
|
||||||
# Add wisely, as too many plugins slow down shell startup.
|
|
||||||
source ~/.oh-my-zsh/custom/plugins/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh
|
source ~/.oh-my-zsh/custom/plugins/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh
|
||||||
plugins=(
|
plugins=(
|
||||||
git
|
git
|
||||||
@@ -86,30 +64,6 @@ source $ZSH/oh-my-zsh.sh
|
|||||||
|
|
||||||
# User configuration
|
# User configuration
|
||||||
|
|
||||||
# export MANPATH="/usr/local/man:$MANPATH"
|
|
||||||
|
|
||||||
# You may need to manually set your language environment
|
|
||||||
# export LANG=en_US.UTF-8
|
|
||||||
|
|
||||||
# Preferred editor for local and remote sessions
|
|
||||||
# if [[ -n $SSH_CONNECTION ]]; then
|
|
||||||
# export EDITOR='vim'
|
|
||||||
# else
|
|
||||||
# export EDITOR='mvim'
|
|
||||||
# fi
|
|
||||||
|
|
||||||
# Compilation flags
|
|
||||||
# export ARCHFLAGS="-arch x86_64"
|
|
||||||
|
|
||||||
# Set personal aliases, overriding those provided by oh-my-zsh libs,
|
|
||||||
# plugins, and themes. Aliases can be placed here, though oh-my-zsh
|
|
||||||
# users are encouraged to define aliases within the ZSH_CUSTOM folder.
|
|
||||||
# For a full list of active aliases, run `alias`.
|
|
||||||
#
|
|
||||||
# Example aliases
|
|
||||||
# alias zshconfig="mate ~/.zshrc"
|
|
||||||
# alias ohmyzsh="mate ~/.oh-my-zsh"
|
|
||||||
|
|
||||||
##############Pratik POWERLEVEL9K Configs####################################
|
##############Pratik POWERLEVEL9K Configs####################################
|
||||||
|
|
||||||
POWERLEVEL9K_SHORTEN_DIR_LENGTH=4
|
POWERLEVEL9K_SHORTEN_DIR_LENGTH=4
|
||||||
@@ -136,21 +90,14 @@ setopt HIST_REDUCE_BLANKS # Remove superfluous blanks before recording e
|
|||||||
setopt HIST_VERIFY # Don't execute immediately upon history expansion.
|
setopt HIST_VERIFY # Don't execute immediately upon history expansion.
|
||||||
setopt HIST_IGNORE_SPACE # Don't add commands that start with whitespace to history
|
setopt HIST_IGNORE_SPACE # Don't add commands that start with whitespace to history
|
||||||
|
|
||||||
if [[ -f ~/.aliases ]]; then
|
##############Bring all the alias and setup scripts################################
|
||||||
source ~/.aliases
|
|
||||||
fi
|
|
||||||
|
|
||||||
if [[ -f ~/.aliases_personal ]]; then
|
[[ ! -f ~/.aliases ]] || source ~/.aliases
|
||||||
source ~/.aliases_personal
|
[[ ! -f ~/.aliases_personal ]] || source ~/.aliases_personal
|
||||||
fi
|
[[ ! -f ~/.neon_alias ]] || source ~/.neon_alias
|
||||||
|
|
||||||
if [[ -f ~/.gosetup ]]; then
|
[[ ! -f ~/.gosetup ]] || source ~/.gosetup
|
||||||
source ~/.gosetup
|
[[ ! -f ~/.flutterpathsetup ]] || source ~/.flutterpathsetup
|
||||||
fi
|
|
||||||
|
|
||||||
if [[ -f ~/.neon_alias ]]; then
|
|
||||||
source ~/.neon_alias
|
|
||||||
fi
|
|
||||||
|
|
||||||
# To customize prompt, run `p10k configure` or edit ~/.p10k.zsh.
|
# To customize prompt, run `p10k configure` or edit ~/.p10k.zsh.
|
||||||
[[ ! -f ~/.p10k.zsh ]] || source ~/.p10k.zsh
|
[[ ! -f ~/.p10k.zsh ]] || source ~/.p10k.zsh
|
||||||
Reference in New Issue
Block a user