System/OS

개인적으로 쓰고 있는 zshrc 파일

by hooni posted Feb 25, 2022
?

단축키

Prev이전 문서

Next다음 문서

ESC닫기

크게 작게 위로 아래로 댓글로 가기 인쇄

최근에 Flutter 추가 ㅋㅋㅋ


#!/bin/zsh

# Add commonly used folders to $PATH
export PATH="/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin"

# Specify default editor. Possible values: vim, nano, ed etc.
export EDITOR=vim

# File search functions
function f() { find . -iname "*$1*" ${@:2} }
function r() { grep "$1" ${@:2} -R . }

# Create a folder and move into it in one command
function mkcd() { mkdir -p "$@" && cd "$_"; }

# Custom aliases
alias vm='~/bin/vm_manage.sh'
alias gg='~/bin/vm_console.sh'
alias zz='~/bin/vm_desktop.sh'
alias console='~/bin/vm_console.sh'
alias desktop='~/bin/vm_desktop.sh'
alias ll='ls -p'

# Example aliases
alias cppcompile='c++ -std=c++11 -stdlib=libc++'
alias g='git'

alias python='python3'
alias pip='pip3'
alias ll='ls -alp'

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

# Java 1.8
export JAVA_HOME=$(/usr/libexec/java_home -v 1.8)

export PATH=$HOME/.nodebrew/current/bin:$PATH

# Flutter
export PATH=$PATH:~/flutter/bin